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
sakamotothais
Helper III
Helper III

Calculate sum table matrix equivalent to excel pivot and getpivotdata

Hi ,

 

I have this table with this information per day

Capture.JPG

 


this table uses these measures

 

 

Measure 3 = SUM('Time Series'[Current Revenue])
Measure 2 = IFERROR(IF([Forecast Revenue]>0,[Forecast Revenue],[Measure 3]),[Measure 3])

 

I want to transform the information into a matrix table, as a pivot. Using as a column the month and using as lines the dates and the total captured by day, by each day

 

You must have this result:

 

capture          month 3/1/2018

3/15/2018   496,152,196.68
3/16/2018   495,852,693.43
3/17/2018   494,576,240.55
3/18/2018   494,873,246.77
3/19/2018   494,905,454.10
3/20/2018   494,819,792.59
3/21/2018   493,976,657.34
3/22/2018   493,454,206.33

 

But when I do in power bi, casting in matrix table, I have thi result

 

Row Labels 3/1/2018
3/15/2018       505,075,041.00
3/16/2018       504,184,839.00
3/17/2018       502,392,550.00
3/18/2018       502,860,058.00
3/19/2018       502,984,273.00
3/20/2018       502,108,342.00
3/21/2018       500,234,492.00
3/22/2018       498,924,429.00

 

How can I get the same result using DAX?

 If I add value to each row of my first table, my total for the day capture is not what it presents.

 

Thank You

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Very difficult to say given the information provided.

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Can you understand now that I edited? 

 

Thank You 

Anonymous
Not applicable

Hi @sakamotothais,

 

Can you please share pbix file for test? I'm not so sure for your 'Forecast Revenue' measure.


Regards,

Xiaoxin Sheng

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.