Forum Discussion
Daniel_Fdrvc
Helper I
5 years agoCan't sum Total
Hi all, here's a main problem: i need to SUM peoples that ar in different categories. First I have created a measure that calculates me amount of sales (left table): GD sutartys = C...
- 5 years ago
Hi, Daniel_Fdrvc
According to your description, I modify your two measures and create a new measure to show the result you want.
Like this:
1 = VAR a = SUMMARIZE ( Sales, Sales[Date], Sales[GD], Sales[ID], "1", IF ( SUM ( Sales[GD] ) = 1, 1, 0 ) ) RETURN SUMX ( a, [1] )2 = VAR a = SUMMARIZE ( Sales, Sales[Date], Sales[GD], Sales[ID], "2", IF ( SUM ( Sales[GD] ) > 1, 1, 0 ) ) RETURN SUMX ( a, [2] )3 = IF([1]+[2]>2,[1]+[2]*2,0)If you still have problems, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Daniel_Fdrvc
Helper I
5 years agoVijayPi found an opportunity to share the pbix file: https://drive.google.com/file/d/1BROeNvGjvovmpRrooyhPk3WUSNZWB4qf/view?usp=sharing
Maybe now you'll find some time to help me. Thank you in advance!
Daniel_Fdrvc
Helper I
5 years agoamitchandak / Greg_Deckler / parry2k / MFelix / Ashish_Mathur maybe someone have solved same task earlier and can help me? Sorry for mentions 😉