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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dshah12
Helper II
Helper II

I have a table and I want to retrieve the data with mapping row and column and have a slicer too

I have a table 

Fruits202220232024
Apple344490
orange892393

 

I want to retrieve the value w.r.t slicer 

so for example I have a slicer of fruits.

and when I select Apple it retrieves the value of apple just for the year 2023

I am not able to understand how to  do it

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @dshah12 

According to your description, you want to "retrieve the data with mapping row and column and have a slicer too".

Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1675301024542.png

(2)We just need to put the 'Table'[Fruits] and the 'Table[year]' fields on the slicer visual and then we can get your need.

vyueyunzhmsft_1-1675301136300.png

Then we can meet your need , the result is as follows:

vyueyunzhmsft_2-1675301159143.png

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

4 REPLIES 4
v-yueyunzh-msft
Community Support
Community Support

Hi , @dshah12 

According to your description, you want to "retrieve the data with mapping row and column and have a slicer too".

Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1675301024542.png

(2)We just need to put the 'Table'[Fruits] and the 'Table[year]' fields on the slicer visual and then we can get your need.

vyueyunzhmsft_1-1675301136300.png

Then we can meet your need , the result is as follows:

vyueyunzhmsft_2-1675301159143.png

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

I really liked the solution but I want to visualize in the card format as I also want to calculate variance for each is there any way

Thank you 

 

djurecicK2
Super User
Super User

Hi @dshah12 ,

 Using a matrix visual, you can put Fruits in the Rows field and 2023 in the values field.

 

djurecicK2_0-1675296433855.png

 

I want to retrieve values in the cards instead of matrix.Any help would be appreciated

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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