Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi Team,
I have created conditional formatting for the below table but If the slicer -> Country ->All then conditional format should be removed.
Country - if select 'ALL' then won't be apply ,except all showing conditional format.
Thanks,
K'udt
Solved! Go to Solution.
Hi @Anonymous ,
From what I understand, do you want the following effect?
If the slicer[country] is not selected, the visual has no conditional formatting changes. If the slicer selects a value, the conditional formatting in the visual changes.
If you do, please see my following solution.
1.Create a country table using dax.
Country = DISTINCT('Table'[Country])
The relationship:
2.Create a measure for conditional formatting. The ISFILTERED function is used to determine whether the slicer is selected.
Measure = IF(ISFILTERED('Country'[Country]),IF(SUM('Table'[Value])>3,"Yellow","Green"))
3.Then comes the most critical point. The slicer puts the country in the ISFILTERED function in the above measure, and the table puts the country field of the main table.
4.Set the color under conditional formatting.
Now, if the slicer is no selected. No color changes.
If the slicer is selected, color changes.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
From what I understand, do you want the following effect?
If the slicer[country] is not selected, the visual has no conditional formatting changes. If the slicer selects a value, the conditional formatting in the visual changes.
If you do, please see my following solution.
1.Create a country table using dax.
Country = DISTINCT('Table'[Country])
The relationship:
2.Create a measure for conditional formatting. The ISFILTERED function is used to determine whether the slicer is selected.
Measure = IF(ISFILTERED('Country'[Country]),IF(SUM('Table'[Value])>3,"Yellow","Green"))
3.Then comes the most critical point. The slicer puts the country in the ISFILTERED function in the above measure, and the table puts the country field of the main table.
4.Set the color under conditional formatting.
Now, if the slicer is no selected. No color changes.
If the slicer is selected, color changes.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous , K'udt,
Can you please rephrase your question and include some context to make it easier to understand what conditional formatting logic you have applied and what's not working?
Hi,
Thanks for your reply,
Conditional formatting applied below table , in that Slicer -> Country (selected all) -> then conditional format should not apply, if I select Country -> except 'All" then applicale the conditioanl format.
Thanks,
K'udt
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.