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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
vitexo87
Post Prodigy
Post Prodigy

hidden graphic

I need to create a dashboard where must have an object that is like a filter and it will have a list of users and clicking on any of these user a new object must come up with the detailed of the same information and when no user is selected the object with the User information will not be displayed, searched for such a report so to the power bi and found, who know how I can do this thanks

rh9.png

rh10.png

4 REPLIES 4
chrisu
Responsive Resident
Responsive Resident

Here is one way I have done this:

 

1. Add your list of users as a slicer.

2. Create a measure to determine whether one user is selected: UserSelectCheck = if(HASONEVALUE([Users], "Y", "N")

3. Add your table/matrix with the user information.  Then add UserSelectCheck as a visual-level filter to the table/matrix and set it to show values when it is equal to Y.  

 

You can also add some additional functionality by changing the the "Y" to blank() or "" and the "N" to "Select a user".  Then you can use UserSelectCheck as a card to instruct your users that thye need to select a user.  You will just have to change the visual level filter to reflect whatever value you set for the true side of the if statement.    

@chrisu

 

I set the v-level filter(selected='Y') however the table displays all items when no any item selected in the slicer.

Can you be more specific?

try modifying the measure currently being used on the visual 

 

measure = if(isfiltered[slicer],1,blank())

Hmm that is probably because you are filtering by user in the table, so for each row of the table the filter context means that one user is selected and the measure evaluates to Y.  Do you have some other user-specific field (like UserID) that you aren't displaying in the table?  If so, you can change your measure to evaluate whether that has one value and it should work.  

 

You could also change your measure to something like the following to force PowerBI to look at the broader filter context of Users rather than row-by-row in the table:

 

=if(calculate(distinctcount([User]),allselected([User]))=1,"Y","N")

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.