Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I have this scenario: I have this data table loaded in PBI:
I want to be able to switch between view Y (rows 1-9) and view X (rows 4-12) by selecting the view I want with a slicer/filter - NOT by deselecting the subset of rows I want to hide.
I just want to have a slicer with two options: View X and View Y.
Is there a way to do so WITHOUT having to duplicate rows that should be visible in both views?
Warm regards,
Jakub
Hi @jdusek92 ,
Create a table for the slicer with the Y / X lines then add the following measure:
Selection = SWITCH ( TRUE (); SELECTEDVALUE ( Slicer_Choice[Slicer_Choice] ) = "X" && ( SELECTEDVALUE ( Views_Table[vyew] ) = "X" || SELECTEDVALUE ( Views_Table[vyew] ) = "Always" ); 1; SELECTEDVALUE ( Slicer_Choice[Slicer_Choice] ) = "Y" && ( SELECTEDVALUE ( Views_Table[vyew] ) = "Y" || SELECTEDVALUE ( Views_Table[vyew] ) = "Always" ); 1; 0 )
Now use tihs measure as a visual filter and select only the values equal to 1.
Check PBIX file attach.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHello,
I am having problem with Column chart to display the data:
Table column displays correctly:
I have added data to your example:
https://drive.google.com/open?id=1Wi1wRx1DyC6tUAEL0wzIa-cdQdn8v7rM
I want to filter by "PRIZNAK" column:
Warm regards,
Jakub
Hi @jdusek92 ,
Create a table for the slicer with the Y / X lines then add the following measure:
Selection = SWITCH ( TRUE (); SELECTEDVALUE ( Slicer_Choice[Slicer_Choice] ) = "X" && ( SELECTEDVALUE ( Views_Table[vyew] ) = "X" || SELECTEDVALUE ( Views_Table[vyew] ) = "Always" ); 1; SELECTEDVALUE ( Slicer_Choice[Slicer_Choice] ) = "Y" && ( SELECTEDVALUE ( Views_Table[vyew] ) = "Y" || SELECTEDVALUE ( Views_Table[vyew] ) = "Always" ); 1; 0 )
Now use tihs measure as a visual filter and select only the values equal to 1.
Check PBIX file attach.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsJoin the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.