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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Can you understand now that I edited? 

 

Thank You 

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
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.