The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Guys, Need help on this..
1. if slicer has the blank() and values , then slicer should show
2. if slicer has the only blank , then slicer should hide(slicer should not show)
3. if slicer has the values then slicer should show
1. Notes-3 slicer Should show- because , it has Blank and Values.
2. Notes-4 slicer Should Hide - Because , i have only blank value
3. Notes -5 slicer Should not hide (Should show) - becasue , i have the data
Solved! Go to Solution.
Thank you Kedar_Pande
Hi, @Anonymous
According to your description, I have the following data sets and table relationships:
First, I created two slicers:
I then created two measures using the following expressions:
SlicerA = IF(COUNTROWS(VALUES(TableA[A]))=0,"#FFFFFF","#000000")
SlicerB = IF(COUNTROWS(VALUES('TableB'[Slicer]))=0,"#FFFFFF","#000000")
Use them in the slicer header:
The results are as follows:
Have values: show
Have values and blank() : show
Only have blank() : hide
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Folks, Any help regarding the above ask
Hi, @Anonymous
You can refer to the PBIX file I provided, it will achieve your needs.
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Kedar_Pande
Hi, @Anonymous
According to your description, I have the following data sets and table relationships:
First, I created two slicers:
I then created two measures using the following expressions:
SlicerA = IF(COUNTROWS(VALUES(TableA[A]))=0,"#FFFFFF","#000000")
SlicerB = IF(COUNTROWS(VALUES('TableB'[Slicer]))=0,"#FFFFFF","#000000")
Use them in the slicer header:
The results are as follows:
Have values: show
Have values and blank() : show
Only have blank() : hide
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @Kedar_Pande , I tried but no luck ,with this measurs , nothing is showing in slicer but not hiding the slicer.. the ask is , it should hide ,, any help ?
Instead of visual level filter, you can add conditional formatting to the header and value
Create a measure:
SlicerVisibility =
IF(
ISBLANK(MAX('YourTable'[YourSlicerField])),
"#FFFFFF", "#FFFFFF00"
)
I tried Pande conditional formating too but no luck . it is not working ..