Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have created the below 2 measure which work as expected.
MPG Sold YTD-LY Chg SUM = sumx(filter(Customer,[MPGs Sold YTD-LY Chg threshold]>0),[MPGs Sold YTD-LY Chg threshold])
New MPG Sold = [MPG Sold YTD-LY Chg SUM]-calculate([MPG Sold YTD-LY Chg SUM],dateadd('Calendar'[Date Value],-1,MONTH))
However, the issue is with January there are many negative values when comparing January to December of the previous year. How can i filter out only the negative values in the New MPG Sold measure
return BLANK() for negative results.
Return if([value]>0,[value])
use MAX(0,[value]) to suppress negative values.
This works to change the negative values to 0, but I want my measure to calculate only for positive outcomes. Using MAX, causes it to show 0 for all values
User | Count |
---|---|
79 | |
74 | |
44 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |