The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi!
I am trying to implement a solution, when the second table shows no data until something is selected in first table. Filtering of data in second table based in selection in first works fine thanks to relationship: when first is selected, second shows only related rows. But when not selected, shows everything.
However when following solution written here: https://community.powerbi.com/t5/Desktop/Visualisations-blank-until-something-selected-in-a-slicer/t... (and many similar posts) adding this measure to visual filters hides all data when nothing is selected in first table, but when something is selected, then second shows all rows, not just thos related.
How to do it?
Regards,
Tomasz
Hi @tposzytek,
Based on my test, it could work on myside:
Sample data:
Create 2 tables.
Create a measure and add to the Table 2
SlicerCheck = if(calculate(distinctcount([Item]),allselected(Table1[Item]))=1,"Y","N")
Set the filter condition and you can see the result.
I would suggest you test again. If issue persists, would you please share your pbix file if possible? Also you can test with our sample report on your side to see if the same issue occurs.
Regards,
Daniel He
That is true, it should, however there is something with my report it doesn't. I manage it working when I selected the "Show items with no data" option in the table which I wanted to filter using the measure. Any idea why?
I cannot share my file with you and I am unable repeat that issue using your file.
Regards,
Tomasz
Hi @tposzytek,
Could you have checked the version of Power BI Desktop(2.60.5169.4101 64-bit (July 2018))? I suggest you to update to the latest version and test again.
Regards,
Daniel He