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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello folks,
I have this conditional colum in a DataQuery...
So it is grouping figures into units for a graph, It may not be eloquent, but it works for a noob like me.
However, I need to move it over to a DAX generated table, but I'm not having any luck.
I got to this...
Solved! Go to Solution.
Hi @Anonymous ,
First, create a column in the Dell_Warranty table:
Rouded-UP =
SWITCH(
TRUE(),
[DaysLeft] = 0, 0,
[DaysLeft]<= 100, 100,
[DaysLeft]<= 250, 250,
[DaysLeft]<= 500, 500,
[DaysLeft]<= 750, 750,
[DaysLeft]<= 1000, 1000,
[DaysLeft]<= 1250, 1250,
[DaysLeft]<= 1500, 1500
)Then, create a calculated table:
Table =
SUMMARIZE(
Dell_Warranty,
Dell_Warranty[ServiceTag],
"startDate", CALCULATE( MIN(Dell_Warranty[StartDate]), ALL(Dell_Warranty) ),
"endDate", CALCULATE( MAX(Dell_Warranty[StartDate]), ALL(Dell_Warranty) ),
"DaysLeft", MAX(Dell_Warranty[DaysLeft]),
"Rounded-UP", MAX(Dell_Warranty[Rouded-UP])
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
First, create a column in the Dell_Warranty table:
Rouded-UP =
SWITCH(
TRUE(),
[DaysLeft] = 0, 0,
[DaysLeft]<= 100, 100,
[DaysLeft]<= 250, 250,
[DaysLeft]<= 500, 500,
[DaysLeft]<= 750, 750,
[DaysLeft]<= 1000, 1000,
[DaysLeft]<= 1250, 1250,
[DaysLeft]<= 1500, 1500
)Then, create a calculated table:
Table =
SUMMARIZE(
Dell_Warranty,
Dell_Warranty[ServiceTag],
"startDate", CALCULATE( MIN(Dell_Warranty[StartDate]), ALL(Dell_Warranty) ),
"endDate", CALCULATE( MAX(Dell_Warranty[StartDate]), ALL(Dell_Warranty) ),
"DaysLeft", MAX(Dell_Warranty[DaysLeft]),
"Rounded-UP", MAX(Dell_Warranty[Rouded-UP])
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 109 | |
| 108 | |
| 40 | |
| 33 | |
| 26 |