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.
Hi all,
I want to replace Blank for Sales USD with 0 for the measure attached below.
For yesterday =
CALCULATE(
[Sales USD],
FILTER (
ALL ( 'TY Group'[Country],'TY Group' [Calendar Day] ),
'TY Group'[Country]="USA" && 'TY Group'[Calendar Day] = TODAY()-1))
Could anyone can help me to write this measure? Thank you!
Solved! Go to Solution.
@Julia_Mav Try:
For yesterday =
CALCULATE(
[Sales USD],
FILTER (
ALL ( 'TY Group'[Country],'TY Group' [Calendar Day] ),
'TY Group'[Country]="USA" && 'TY Group'[Calendar Day] = TODAY()-1)) + 0
Hi @Julia_Mav
Just add +0 at the end of your measure.
Ex:
For yesterday =
CALCULATE(
[Sales USD],
FILTER (
ALL ( 'TY Group'[Country],'TY Group' [Calendar Day] ),
'TY Group'[Country]="USA" && 'TY Group'[Calendar Day] = TODAY()-1))+0
This should solve your problem, if not do let me know.
Cheers,
Manendra.
add +0 at the end of the measure
Hi @Julia_Mav
Just add +0 at the end of your measure.
Ex:
For yesterday =
CALCULATE(
[Sales USD],
FILTER (
ALL ( 'TY Group'[Country],'TY Group' [Calendar Day] ),
'TY Group'[Country]="USA" && 'TY Group'[Calendar Day] = TODAY()-1))+0
This should solve your problem, if not do let me know.
Cheers,
Manendra.
@Julia_Mav Try:
For yesterday =
CALCULATE(
[Sales USD],
FILTER (
ALL ( 'TY Group'[Country],'TY Group' [Calendar Day] ),
'TY Group'[Country]="USA" && 'TY Group'[Calendar Day] = TODAY()-1)) + 0
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |