Translate

Thursday 21 December 2023

What is the option to unpivot data in the question proofreader in Power BI ? Power BI interview questions and answers 052

 What is the option to unpivot data in the question proofreader in Power BI ?


I'll provide information on unpivoting data in Power BI, but I'll clarify that there's no feature called "question proofreader" within Power BI.

Unpivoting data in Power BI is done within the Power Query Editor, not in a proofreader. Here's how to do it:

  1. Access Power Query Editor:

  • In Power BI Desktop, click on the "Transform Data" button under the "Home" tab.

  • This opens the Power Query Editor.

  1. Select Columns:

  • Identify the columns you want to unpivot.

  • Select them by clicking and dragging, or by using Ctrl+click.

  1. Apply Unpivot:

  • Right-click on the selected columns and choose one of the following options:

  • "Unpivot Columns": Unpivots all selected columns.

  • "Unpivot Other Columns": Unpivots all columns except the one you right-clicked on.

  • "Unpivot Only Selected Columns": Ensures that only those specific columns remain unpivoted after data refresh.

  1. Review Result:

  • The unpivoted data will now have two new columns:

  • Attribute: Contains the original column names.

  • Value: Contains the values from the unpivoted columns.

  1. Apply Changes (Optional):

  • If you're satisfied, click on "Close & Apply" in the Home tab to save the changes and return to the Power BI report view.

Key Points:

  • Unpivoting is often used to reshape data for easier analysis or visualization.

  • It's a common technique for preparing data in a format that's suitable for creating pivot tables or charts.

  • You can unpivot multiple columns at once.

  • Consider using filters or conditional columns to refine the unpivoted data further.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.