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
Please help me to write the below statement in Power BI?
CASE WHEN `TableA`='-' THEN 0 ELSE CONCAT(`TableA`,'0') END
Many Thanks
Solved! Go to Solution.
Hi @kh0050 ,
If you need a calculated column ,use below dax expression:(based on my sample table)
Column = IF('Table'[A]="-","0",'Table'[A]&0)
If you need a measure,use below dax expression:
Measure = IF(MAX('Table'[A])="-",0,MAX('Table'[A])&0)
For both method,you would see:
For my sample .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Thank you so much Kelly!
Hi @kh0050 ,
If you need a calculated column ,use below dax expression:(based on my sample table)
Column = IF('Table'[A]="-","0",'Table'[A]&0)
If you need a measure,use below dax expression:
Measure = IF(MAX('Table'[A])="-",0,MAX('Table'[A])&0)
For both method,you would see:
For my sample .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
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 |
---|---|
102 | |
53 | |
21 | |
12 | |
12 |