This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I'm new to Powerbi, and I'm having trouble converting this SQL code to DAX
measure: perc_ating {
label: "∆ % Monthly Goal"
type: number
sql: case when
${perc_ating_aux} >= 0 then ${perc_ating_aux}
else 100 end
;;
value_format: "#.0\%"
}.
Can anybody help me
@user2023 This would be easier with sample data and expected output but maybe try:
perc_ating measure = IF( [perc_ating_aux] >= 0, [perc_ating_aux], 100)
@Greg_Deckler But how would I put the value format "#.0\%" for it to come within this condition?
@user2023 Either @R1k91 's method or you can use a Custom Format String. Use custom format strings in Power BI Desktop - Power BI | Microsoft Learn. You could use FORMAT but that will turn it into text.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 7 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 23 | |
| 22 | |
| 21 | |
| 20 |