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.
Solved! Go to Solution.
@abriggs , if values need to be ignored at the row/line level. Then try
Measure = CALCULATE(SUMX(filter('Table','Table'[Values] > 0),'Table'[Values]))
If the filter is after grouping data, say at account no
Measure = CALCULATE(SUMX(values('Table'[Account No]),if('Table'[Values] > 0, 'Table'[Values] , blank())))
Sorry for my delay - it worked. Thank you!!!
Hi @abriggs
Has the problem been solved? If so, you may accept the appropriate post as the solution or post your own solution to help other members find it quickly. If not, can you please share some sample data or sample PBIX file so that we can try to find the targeted measures? Thanks very much.
Best Regards,
Community Support Team _ Jing Zhang
@abriggs , if values need to be ignored at the row/line level. Then try
Measure = CALCULATE(SUMX(filter('Table','Table'[Values] > 0),'Table'[Values]))
If the filter is after grouping data, say at account no
Measure = CALCULATE(SUMX(values('Table'[Account No]),if('Table'[Values] > 0, 'Table'[Values] , blank())))
Hi! Thank you for your response.
So what you've said makes sense and works when the values is not a previous calculated measure, else it's not working.
When I recreated this.... my values is a prior calculated measures....thoughts?
Measure = CALCULATE(SUMX('Table','Table'[Values]),'Table'[Values] > 0)
Hi @abriggs
you can try it like this (I used my own sample data):
Measure = CALCULATE(SUMX('Table','Table'[Values]),'Table'[Values] > 0)
Sum of Values = IF(SUM('Table'[Values]) <= 0 , 0 , [Measure])
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |