Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
hello all,
please i would like to have some help with my use case, actually know if what i want to do is possible.
i want to hide the content of table until values was selected in 2 slicers "date range" and "phone number" in order to perform an export to csv file in matrix vizual, the user mustn't have the visibillity to all data.
Thanks for the reply from Sahir_Maharaj, please allow me to provide another insight.
Hi @Ayoubid ,
I'm not sure how your dataset is designed, here is my sample.
The test data is as follows.
Create the following measure to check the slicer selection.
SlicerCheck =
VAR dateSlicer = CALCULATE(SELECTEDVALUE('Table'[Date]),ALLSELECTED('Table'[Date]))
VAR phoneSlicer = CALCULATE(SELECTEDVALUE('Table'[PhoneNumber]),ALLSELECTED('Table'[PhoneNumber]))
RETURN
IF(dateSlicer <> BLANK() && phoneSlicer <> BLANK(),1,0)
Add this measure to the filter pane of the matrix, set to is 1. And lock this filter to prevent other users from changing it.
The final results are as follows. Hopefully it will meet your needs.
Please see the attached pbix for reference.
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @Ayoubid,
you can achieve this by creating a DAX measure that will hide data in your Power BI table visual until both slicers are selected:
ShowData =
VAR DateSelected = ISFILTERED('DateTable'[Date])
VAR PhoneSelected = ISFILTERED('PhoneTable'[PhoneNumber])
RETURN
IF(DateSelected && PhoneSelected, 1, BLANK())
Hi, can provide more information on this?
What you are saying for example is, you don't want the Matrix visual to display anything at all. Until when the user selects something in both slicers? Which means, if nothing is selected, the Matrix visual should technically be hidden?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
72 | |
62 | |
51 | |
48 |
User | Count |
---|---|
206 | |
90 | |
61 | |
59 | |
57 |