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!
Hi,
I have this calculated column.
Days Off Service in Selected Wk = CALCULATE(COUNTAX(vw_PivotOffService,vw_PivotOffService[Days Off Service]),vw_PivotOffService[Week])
Some results returned are greater than 7. For theses I need to make them 7.
Solved! Go to Solution.
Hey
try this ...
Days Off Service in Selected Wk = var tempResult = CALCULATE(COUNTAX(vw_PivotOffService,vw_PivotOffService[Days Off Service]),vw_PivotOffService[Week]) return IF(tempResult > 7, 7, tempResult)
Hopefully, this is what you are looking for.
Regards
Hey
try this ...
Days Off Service in Selected Wk = var tempResult = CALCULATE(COUNTAX(vw_PivotOffService,vw_PivotOffService[Days Off Service]),vw_PivotOffService[Week]) return IF(tempResult > 7, 7, tempResult)
Hopefully, this is what you are looking for.
Regards
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 |
|---|---|
| 64 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 124 | |
| 105 | |
| 44 | |
| 32 | |
| 24 |