Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
kpavan999
Frequent Visitor

Show/Hide a set of columns based on slicer/flag

Dear Experts,

 

before posting this question, I did go through existing topics but I couldnt find any relavent solution hence posting it here now.

 

I have a req to build a report with ~100 columns, can we have a slicer(y/n), when its selected as Y then show all columns, if selected N then show only a few columns(which i can define what columns to show)

 

In simple terms, I have columns A,B,C,D,E

 

My slicer would be

"Display All columns?"

Y

N

 

If selected N

output should be A,B,D

 

If selected Y

output should be A,B,C,D,E

1 ACCEPTED SOLUTION
3 REPLIES 3
amitchandak
Super User
Super User

@kpavan999 , if this just Y and N (for set 1 columns vs set 2 columns). you can use a bookmark. But if is based on 100 columns Y and N for each one then it bit difficult.

 

There is a solution for Direct Query for that without using a bookmark.

https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thats correct, but I have got multiple such combinations so i need to create diff buttons for each of that combination. 

Is there a way where by selecting slicer, the bookmark button too changes to that respective page?

 

Lets say, if i select my slicer as Y the button should go to "sheet1" if its N then it should navigate to "sheet2"?

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.