This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I All,
I have written DAX code like this: -
Measure = if(
ISFILTERED('optimisation'[BROADCASTER]),CALCULATE(DIVIDE ( [1], [2] ),
ALL('optimisation'[LEVEL]),'optimisation'[LEVEL] = "BROADCASTER"),
if(ISFILTERED('optimisation'[BROADCASTER]) && ISFILTERED(
'optimisation'[SERIES]),CALCULATE(DIVIDE ( [1], [2] ),
ALL('optimisation'[LEVEL]),'optimisation'[LEVEL] = "SERIES")))
But when I select any broadcaster from broadcaster filter its perfectly working but my second "If" condition fail when I select series from the filter it gives me a blank on card.
Solved! Go to Solution.
Hi @Anonymous ,
You can try below code:-
Measure =
VAR _series =
CALCULATE (
DIVIDE ( [1], [2] ),
ALL ( 'optimisation'[LEVEL] ),
'optimisation'[LEVEL] = "SERIES"
)
VAR _broadcaster =
CALCULATE (
DIVIDE ( [1], [2] ),
ALL ( 'optimisation'[LEVEL] ),
'optimisation'[LEVEL] = "BROADCASTER"
)
RETURN
IF (
ISFILTERED ( 'optimisation'[SERIES] ),
IF ( ISFILTERED ( 'optimisation'[BROADCASTER] ), _series ),
IF ( ISFILTERED ( 'optimisation'[BROADCASTER] ), _broadcaster )
)
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Anonymous ,
You can try below code:-
Measure =
VAR _series =
CALCULATE (
DIVIDE ( [1], [2] ),
ALL ( 'optimisation'[LEVEL] ),
'optimisation'[LEVEL] = "SERIES"
)
VAR _broadcaster =
CALCULATE (
DIVIDE ( [1], [2] ),
ALL ( 'optimisation'[LEVEL] ),
'optimisation'[LEVEL] = "BROADCASTER"
)
RETURN
IF (
ISFILTERED ( 'optimisation'[SERIES] ),
IF ( ISFILTERED ( 'optimisation'[BROADCASTER] ), _series ),
IF ( ISFILTERED ( 'optimisation'[BROADCASTER] ), _broadcaster )
)
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
@Anonymous , for second one both should be filtered and you need to have some data for 'optimisation'[LEVEL] = "SERIES"
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@amitchandak HI Thanks for your reply, I tested my measure i selected first broadcaster then series in filter while selecting series in filter card showing me the "Blank".
I created separate measure for series and tested my values,
Selecting broadcaster then series it works for me
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 36 | |
| 32 | |
| 25 | |
| 23 |