cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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
Super User
Super User

Re: Calculate sum table matrix equivalent to excel pivot and getpivotdata

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


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Re: Calculate sum table matrix equivalent to excel pivot and getpivotdata

Can you understand now that I edited? 

 

Thank You 

Community Support Team
Community Support Team

Re: Calculate sum table matrix equivalent to excel pivot and getpivotdata

Hi @sakamotothais,

 

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


Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 433 members 4,393 guests
Please welcome our newest community members: