Forum Discussion
_Melenios_
Helper I
5 years agoData Aggregation - Wrong Total Subtotals
Hi all, I'm trying to do a data aggregation based on any filter you select( Date,Week,Month etc). My problem is that i cannot get the correct % according to what i choose on the filters.(Eg. If i...
- 5 years ago
i see. try this then
Sales perc V2 = DIVIDE ( SUM ( Table1[Sales] ), CALCULATE ( SUM ( Table1[Sales] ), ALLSELECTED () ) )Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
AllisonKennedy
Community Champion
5 years ago_Melenios_ I believe you will want a relationship between Calendar and Data table. Also, it looks like you're trying to divide total hours by sum sales (count divided by sum, and possibly also hours divided by $$??) which could be part of the problem for your crazy percentages.
What does the raw data model look like? Please can you paste some sample rows of both Data and Calendar tables? Or share pbix as already suggested by AlB