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
I have a dax formula that I need to add a filter to. I tried the following but it didn't work. Any idea what I'm doing wrong? Thanks!
if( 'FACT CA Contract'[AR Elig] = 0,
0,
('FACT CA Contract'[AR Cont] / 'FACT CA Contract'[AR Elig] )
FILTER('AR IND Desc',
OR(
'AR IND Desc'[AR_IND_DESC] = "Assisted",
'AR IND Desc'[AR_IND_DESC] = "None")))
Solved! Go to Solution.
Thanks I found my error.
@egiam , Try like
if( 'FACT CA Contract'[AR Elig] = 0,
0,
calculate( ('FACT CA Contract'[AR Cont] / 'FACT CA Contract'[AR Elig] )
FILTER('AR IND Desc',
OR(
'AR IND Desc'[AR_IND_DESC] = "Assisted",
'AR IND Desc'[AR_IND_DESC] = "None"))) )
But are you trying to create a measure or a column ?
trying to create a measure
@egiam If it's a measure, you'll need to use an aggregator like SUM.
Customer Sold per Age Group =
CALCULATE (
DIVIDE (
SUM ( 'FACT CA Contract'[AR Cont] ),
SUM ( 'FACT CA Contract'[AR Elig] ),
0
),
FILTER (
VALUES ( 'AR IND Desc'[AR_IND_DESC] ),
'AR IND Desc'[AR_IND_DESC] IN { "Assisted", "None" }
)
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |