powerbidax

How to pivot/unpivot data for a visual in Power BI without using Power Query


I have a visual that I need to display in a certain way, where I think Unpivot would be the solution in Power Query. However the data set its coming from is our 'main' data set and I can't pivot/unpivot there as it would affect many other visuals.

The visual currently displays as:

enter image description here

I am trying to get it to display as:

enter image description here

Is there any functionality within DAX that can do something similar?


Solution

  • Use the Matrix visual, add the date to the Columns well, and add Plan and Actual to the Values well. Then in the visual options go to Values > Options and enable the Switch values to rows option.