Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a matrix with a column name "LA" that have some blank rows so I wanna replace them with 0. The thing is this column are a arelady a measure column that look like this
LA = CALCULATE([Rainbow];SAMEPERIODLASTYEAR(Calender[Date]))
How can I in same measure shown above use ISBLANK to repalce those blank rows with 0 ?
Solved! Go to Solution.
LA = var cal = CALCULATE([Rainbow];SAMEPERIODLASTYEAR(Calender[Date])) var ret = if(cal = blank,0,cal) return ret
Proud to be a Super User!
@Anonymous ,
So LA is a measure , not a column, right? You can also modify your measure using dax below:
LA = IF ( ISBLANK ( CALCULATE ( [Rainbow]; SAMEPERIODLASTYEAR ( Calender[Date] ) ) ); 0; CALCULATE ( [Rainbow]; SAMEPERIODLASTYEAR ( Calender[Date] ) ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
So LA is a measure , not a column, right? You can also modify your measure using dax below:
LA = IF ( ISBLANK ( CALCULATE ( [Rainbow]; SAMEPERIODLASTYEAR ( Calender[Date] ) ) ); 0; CALCULATE ( [Rainbow]; SAMEPERIODLASTYEAR ( Calender[Date] ) ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
LA = var cal = CALCULATE([Rainbow];SAMEPERIODLASTYEAR(Calender[Date])) var ret = if(cal = blank,0,cal) return ret
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
76 | |
63 | |
51 | |
48 |
User | Count |
---|---|
211 | |
86 | |
64 | |
59 | |
56 |