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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.