Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Month | Product | SalesAmount |
Jan | A | 0 |
Jan | B | 84 |
Jan | C | 0 |
Feb | A | 68 |
Feb | B | 0 |
Feb | C | 0 |
Mar | A | 92 |
Mar | B | 0 |
Mar | C | 0 |
Apr | A | 61 |
Apr | B | 76 |
Apr | C | 0 |
How could it be done?
Solved! Go to Solution.
Hi @FreemanZ ,
Min sales:
easure =
var minsales = CALCULATE(MIN('Table'[SalesAmount]),FILTER(ALLEXCEPT('Table','Table'[Product]),'Table'[MonthNo]>MAXX(ALLSELECTED('Table'),'Table'[MonthNo])-3))
return
IF(minsales>0,0,1)
Sum sales:
Measure =
var sumsales = CALCULATE(SUM('Table'[SalesAmount]),FILTER(ALLEXCEPT('Table','Table'[Product]),'Table'[MonthNo]>MAXX(ALLSELECTED('Table'),'Table'[MonthNo])-3))
return
IF(minsales>0,0,1)
Best Regards,
Jay
Hi @FreemanZ ,
Min sales:
easure =
var minsales = CALCULATE(MIN('Table'[SalesAmount]),FILTER(ALLEXCEPT('Table','Table'[Product]),'Table'[MonthNo]>MAXX(ALLSELECTED('Table'),'Table'[MonthNo])-3))
return
IF(minsales>0,0,1)
Sum sales:
Measure =
var sumsales = CALCULATE(SUM('Table'[SalesAmount]),FILTER(ALLEXCEPT('Table','Table'[Product]),'Table'[MonthNo]>MAXX(ALLSELECTED('Table'),'Table'[MonthNo])-3))
return
IF(minsales>0,0,1)
Best Regards,
Jay
This code works:
Hi,
Please check the below picture and the attached pbix file.
All measures are in the attached pbix file.
User | Count |
---|---|
12 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
11 | |
7 |