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
Anonymous
Not applicable

Pivot a summarized table with DAX

I have a summarized table that looks like this:

summarized.png

I want to pivot it to a new table that looks like following for current month = 1 

metricsvalues
New MRR456564
Expansion MRR48456
Contraction MRR4545
Churned MRR67878

last month mrr

124545

Total MRR

457575

 

I can't use the pivot function in query editor because this is a summarized table.

And I need the results in a new table for a waterfall chart.

How can I do this?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I made it work by using Selectcolumns

 

Pivot MRR = FILTER(
                UNION(
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","Beginning MRR","Values",MRRWaterFall[last month mrr]),
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","New MRR","Values",MRRWaterFall[New MRR]),
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","Expansion MRR","Values",MRRWaterFall[Expansion MRR]),
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","Contraction MRR","Values",MRRWaterFall[Contraction MRR]),
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","Churned MRR","Values",MRRWaterFall[Churned MRR])
                    ),[current]=1
)

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

I made it work by using Selectcolumns

 

Pivot MRR = FILTER(
                UNION(
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","Beginning MRR","Values",MRRWaterFall[last month mrr]),
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","New MRR","Values",MRRWaterFall[New MRR]),
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","Expansion MRR","Values",MRRWaterFall[Expansion MRR]),
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","Contraction MRR","Values",MRRWaterFall[Contraction MRR]),
                    SELECTCOLUMNS(MRRWaterFall,"current",MRRWaterFall[current month],"Metrics","Churned MRR","Values",MRRWaterFall[Churned MRR])
                    ),[current]=1
)

 

@Anonymous , Thanks for sharing. Kudos!!

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

If you want to display measure on row. Matrix has a property show on row. Use that.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak I don't want to display these values. I need to use them for a waterfall chart.

Apologies if I wasn't clear in the post. I've edited it to reflect my requirements more clearly.

 

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.