Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
BobbyDollar
Frequent Visitor

Measures in Pivot

Hi

I use PowerPivot in Excel and am stuck with an issue. Because i am not sure with my DAX approach I post here, hoping somebody can help.

Sample date in DataModel:

 

ScenarioProductYearQuarterVolume 

FC1

C3500201915 
FC1C3500201927 
FC2C3500201916 
FC2C3500201929 


I create a Measurer to calculate the Scenario difference:

 

FC2 vs. FC1:=CALCULATE(SUM(Table[Volume];Scenario="FC2")/CALCULATE(SUM(Table[Volume];Scenario="FC1")

 


In Pivot I need to compare the different scenarios. So Rows = Product and Scenario = Column. If i pull my Measurer into the Values, the pivot creates 2 new columns, showing same data.

 FC1FC2 vs. FC1FC2FC2 vs. FC1
C350012125%15125%

 

But actually I need only one Column, at the end of pivot to have a comparison of the scenarios. Any advice how to do??

Hopefully not by creating a Set in Pivot

 

It should look like this:

 FC1FC2FC2 vs. FC1
C35001215125%


Any help appreciated.
Thank you

1 REPLY 1
Stachu
Community Champion
Community Champion

I would create 3 measures

FC1:= CALCULATE(SUM(Table[Volume];Scenario="FC1")
FC2:= CALCULATE(SUM(Table[Volume];Scenario="FC2")
FC2 vs. FC1:= DIVIDE([FC2];[FC1])

I'd also recommend using the DIVIDE for comparison , as it has DIV/0 handling



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.