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

Don'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.

Reply
Kavita_PIA
Frequent Visitor

Power BI_Matrix Table and Slicer Selection

Hi

 

I have question regarding Matrix table, When i am selecting a slicer i am seeing only selected data , however my requirement is when i am selecting a slicer i want to show records of all fileds, if there is no data then it show me blank.

 

is it possible in Power Bi Desktop?

 

Thanks

Kavita

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Kavita_PIA ,

 

According to your description, do you want to filter specific file names by slicer and then display the corresponding data according to the file name, or show empty if there is no data.
Refer to the following.

slicer_docuemnt =
VAR sel =
    SELECTEDVALUE ( 'Table'[DocumentName] )
VAR val =
    CALCULATE ( MAX ( 'Table'[Data] ), sel = 'Table'[DocumentName] )
RETURN
    IF ( val = BLANK (), 0, val )

vhenrykmstf_0-1667185121414.png

vhenrykmstf_1-1667185129678.png

 


If the problem is still not resolved, please provide screenshots of the expected results and test data so that I can answer your questions as soon as possible


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @Kavita_PIA ,

 

According to your description, do you want to filter specific file names by slicer and then display the corresponding data according to the file name, or show empty if there is no data.
Refer to the following.

slicer_docuemnt =
VAR sel =
    SELECTEDVALUE ( 'Table'[DocumentName] )
VAR val =
    CALCULATE ( MAX ( 'Table'[Data] ), sel = 'Table'[DocumentName] )
RETURN
    IF ( val = BLANK (), 0, val )

vhenrykmstf_0-1667185121414.png

vhenrykmstf_1-1667185129678.png

 


If the problem is still not resolved, please provide screenshots of the expected results and test data so that I can answer your questions as soon as possible


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

speedramps
Super User
Super User

We want to help you but your description is too vaugue. Please write it again clearly.

Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Also provide the example desired output, with a clear description of the process flow.

Remember not to share private data ... we don't want you to get into trouble. 😧

Take care to use the same table and field names in the input, output and description so we can understand your problem and help you.

You will get a quick response if you put time and effort into writing clear problem descriptions.

Vaugue descriptions can waste your time and ourtime.

Look foward to helping you when the above information is forthcoming

AbbasG
Memorable Member
Memorable Member

@Kavita_PIA can you share sample data with little bit more information on your desired output?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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