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.
Hello,
I have this table,
but the total is wrong (its missing the 120 +120 to equal 3205 for Tax Place holder and 2592 for Cash Place holder)
My measures are:
and
Date | Taxes |
10/2/2016 0:00 | 635.802 |
10/3/2016 0:00 | 649.527 |
10/6/2016 0:00 | 827.314 |
10/4/2016 0:00 | 852.5352 |
Solved! Go to Solution.
Hi @Anonymous
create measures
blank_flag = IF(SUM('Pi Data'[Taxes])=BLANK(),1,0) Tax Place Holder2 = VAR count_blank = COUNTX ( FILTER ( ALLSELECTED ( 'date' ), [blank_flag] = 1 ), [blank_flag] ) VAR tax1 = IF ( ISBLANK ( SUM ( 'Pi Data'[Taxes] ) ), 5 * 24, SUM ( 'Pi Data'[Taxes] ) ) RETURN IF ( HASONEVALUE ( 'date'[Date] ), tax1, CALCULATE ( SUM ( 'Pi Data'[Taxes] ), ALLSELECTED ( 'date'[Date] ) ) + 120 * count_blank ) Cash Place Holder2 = var sum1=18*24 return IF(HASONEVALUE('date'[Date]),sum1,SUMX(ALLSELECTED('date'),sum1))
Best Regards
Maggie
Hi @Anonymous
create measures
blank_flag = IF(SUM('Pi Data'[Taxes])=BLANK(),1,0) Tax Place Holder2 = VAR count_blank = COUNTX ( FILTER ( ALLSELECTED ( 'date' ), [blank_flag] = 1 ), [blank_flag] ) VAR tax1 = IF ( ISBLANK ( SUM ( 'Pi Data'[Taxes] ) ), 5 * 24, SUM ( 'Pi Data'[Taxes] ) ) RETURN IF ( HASONEVALUE ( 'date'[Date] ), tax1, CALCULATE ( SUM ( 'Pi Data'[Taxes] ), ALLSELECTED ( 'date'[Date] ) ) + 120 * count_blank ) Cash Place Holder2 = var sum1=18*24 return IF(HASONEVALUE('date'[Date]),sum1,SUMX(ALLSELECTED('date'),sum1))
Best Regards
Maggie
Thanks! it works. Crazy that it needs to be that complicated haha!!
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 |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |