Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hey @v_mark ,
a calculated column and a measure are 2 different concepts. You cannot always convert one to another, otherwise there would not be a reason to have both.
In your case you create a value by each row. If you do that as a measure you lose abilities that a calculated column has, like filtering by that value.
So the real question is what exactly do you want to do?
Otherwise you can easily transform that into a measure, I'm just not sure if you can use it then:
Task Bucket =
SWITCH(
TRUE(),
MAX(Task[Aged]) <= 1, "<24hrs",
MAX(Task[Aged]) <= 3, "<72hrs",
MAX(Task[Aged]) >= 3, ">72hrs"
)
Hi @v_mark ,
First, please make sure the field Task[Aged] will be put on your visual. Then you can create the measure as below to replace the original caculated column [Task Bucket]:
Measure =
IF (
SELECTEDVALUE ( Task[Aged] ) <= 1,
"<24hrs",
IF ( SELECTEDVALUE ( Task[Aged] ) <= 3, "<72hrs", ">72hrs" )
)
Best Regards
Hi @v_mark ,
First, please make sure the field Task[Aged] will be put on your visual. Then you can create the measure as below to replace the original caculated column [Task Bucket]:
Measure =
IF (
SELECTEDVALUE ( Task[Aged] ) <= 1,
"<24hrs",
IF ( SELECTEDVALUE ( Task[Aged] ) <= 3, "<72hrs", ">72hrs" )
)
Best Regards
Hey @v_mark ,
a calculated column and a measure are 2 different concepts. You cannot always convert one to another, otherwise there would not be a reason to have both.
In your case you create a value by each row. If you do that as a measure you lose abilities that a calculated column has, like filtering by that value.
So the real question is what exactly do you want to do?
Otherwise you can easily transform that into a measure, I'm just not sure if you can use it then:
Task Bucket =
SWITCH(
TRUE(),
MAX(Task[Aged]) <= 1, "<24hrs",
MAX(Task[Aged]) <= 3, "<72hrs",
MAX(Task[Aged]) >= 3, ">72hrs"
)
Task Bucket =
SWITCH(
TRUE(),
MAX( Task[Aged] ) <= 1, "<24hrs",
MAX( Task[Aged] ) <= 3, "<72hrs",
">72hrs"
)
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 46 |