Forum Discussion

Sailor_Leroy's avatar
Sailor_Leroy
New Member
4 years ago
Solved

Equivalent behavior to Switch Rows-Columns in Excel

Below is an example of a table of data which I've been asked to put into a visual:

 

Month_YearAggPct1AggPct2AggPct3AggPct4AggPct5AggPct6
Jan-2124.0629.832.8634.8136.1137.21
Feb-2128.7635.7439.0441.743.1944.37
Mar-2128.234.0637.2439.5941.3942.68
Apr-2124.3329.4832.5335.0236.2437.17
May-2125.331.0334.6936.7938.0739.15
Jun-2126.9234.0437.2239.5641.1742.4
Jul-2126.7331.3834.7837.3638.9440.04
Aug-2128.0332.7436.539.0140.2541.25
Sep-2130.1336.24042.4243.7543.75
Oct-2125.0631.3134.4836.3636.3636.36
Nov-2124.0329.5932.132.132.132.1
Dec-2128.7733.3733.3733.3733.3733.37

 

In both Excel and Power BI I can generate a line chart that looks like this: 

 

Within Excel, right-click and Source Data, there's an option to Switch Rows and Columns:

 

That yields a chart like the image below.  Personally I don't understand the benefit of this visual, but I'm only expected to replicate it at this time as we attempt to automate/move reporting to Power BI.

 

No matter what I try to do, I'm unable to replicate this "inversion" and am not enough of a data scientist to understand how to accomplish a change like this.  What options - whether Power Query, DAX, measures, or something to do with the visuals themselve - do I have to accomplish this goal?

2 Replies