Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I'm having a brain fart and can't figure out how to create a measure to count the months over a target.
Measure that shows %:
2022 Margin % =
DIVIDE(
[2022 Total Amount Converted] - [2022 Total Costs], [2022 Total Amount Converted]
)
I'd like to create a measure that counts months that are over 50% (.5).
Solved! Go to Solution.
You can use a var for your DIVIDE calculation and return if > 0.5.
Something like:
2022 Margin % =
var counts = DIVIDE(
[2022 Total Amount Converted] - [2022 Total Costs], [2022 Total Amount Converted]
)
return IF(counts > 0.5, counts, BLANK())
You can use a var for your DIVIDE calculation and return if > 0.5.
Something like:
2022 Margin % =
var counts = DIVIDE(
[2022 Total Amount Converted] - [2022 Total Costs], [2022 Total Amount Converted]
)
return IF(counts > 0.5, counts, BLANK())
Thank you, very helpful!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |