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
katromank
Frequent Visitor

Totals Aggregation Issue

Hi, I have a issue in my report.

 

I have two measures,

 

UDR = Product Sales/ Stores Count - Sales per day per restaurant 

UPT = Product Sales/(Transactions/1000) - Sales per 1000 Transactions

 

Product sales was in 01.01.2024-14.01.2024 

 

katromank_0-1720960122869.png

There is a condition on the report that sales >0 so selecting the dates 01.01-2024-31.01.2024 shows only the days from which there are sales and calculates UPT and UDR correctly.

katromank_1-1720960349446.png

unfortunately when I delete the date it shows UPT AND UDR calculated for the whole period .

katromank_2-1720960423239.png

katromank_3-1720960460404.png

what is wrong:/

What can I do to show the correct value for the total -only from the days in which there were sales of the product.

 

Could you please help me:)

Thanks in advanced,

BR

KRK

1 ACCEPTED SOLUTION

@katromank 

Screenshot 2024-07-14 at 7.45.41 PM.png

 

You can download the pbix file from here

 



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



View solution in original post

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

@katromank First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8



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

@katromank 
 Can you share your expected result? 

Of course:)

Fiter dates: 01.01.2024-31.01.2024

katromank_0-1720961457919.png

 

@katromank 

Screenshot 2024-07-14 at 7.45.41 PM.png

 

You can download the pbix file from here

 



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



Hi, 

 

Thanks so much! 

Could you please tell me how it would look if the transaction data were in a separate  and the two tables were linked by date?

 

BR 

Andrzej

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.