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

Need help with 'Total on a card incorrect'

Hi Community,

 

I am stuck at a problem that might be something very simple to resolve, but I can't find a resolution.

So I have a measure that calculates totals. If I pull this measure on a card I get incorrect total, but on a line graph the measure displays correct values & when summed gives correct total. 

Also I get wrong cumulative totals.

Capture_2901.PNG

Can someone please help me figure out whats going on here?

Here is my sample pbi:  https://1drv.ms/u/s!Ag919_pO_UKrgQ_cQ8o4TbfZsWBJ?e=ioNd6f

 

Many thanks!

1 ACCEPTED SOLUTION

@Anonymous , You need use month year from date visual with this measure

Cumulative_total = CALCULATE(sumx(values(Datedim[Month_year]),[Totals]),FILTER(ALL(Datedim),Datedim[Date] <= MAX(Datedim[Date]) ))

 

file attached after signature

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Try a measure like

 

Cumulative_total = CALCULATE([Totals],FILTER(ALL(Datedim),Datedim[Date] <= MAX(Datedim[Date]) ))

 

Or

Cumulative_total = var _max = maxx(ALLSELECTED(w_test), w_test[Case_OPENED_ON])
return if(max(Datedim[Date]) <=_max , CALCULATE([Totals],FILTER(ALL(Datedim),Datedim[Date] <= MAX(Datedim[Date]) )),BLANK())

 

Anonymous
Not applicable

@amitchandak thanks, but the measure suggested by you doesn't work. Gives the same result 300. 

Any suggestion on the card?

@Anonymous , You need use month year from date visual with this measure

Cumulative_total = CALCULATE(sumx(values(Datedim[Month_year]),[Totals]),FILTER(ALL(Datedim),Datedim[Date] <= MAX(Datedim[Date]) ))

 

file attached after signature

 

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.