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
Anonymous
Not applicable

How to create Slicer to select particular columns data (7days,30days,60days)

Hi all,

 

I am new to PowerBI. I have below two tables like supply and demand with same columns :

 

skondi_1-1623316437824.png

 

I have the same columns for demand and supply tables with columns as Id, 7days,30days,60days and 90days.

Basically I have this two fact aggregrated tables from SQL around 2-3M rows each , I just need to use them here for displaying w.r.t slicer, like when selecting 90days , it should show only data related to column of 90days. So I created a 3rd table with columns names and used it in slicer. but I am not getting how to make it connected to this columns name properly. Any Idea?

 

Screenshot:

skondi_3-1623316668508.png

 

Thanks in Advance

 

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

Hi @Anonymous ,

I created a sample pbix file (see attachment), please check whether that is what you want.

1. Select the columns "Last7Days", "Last30Days","Last60Days", "Last90Days" and UNPIVOT these selected columns

= Table.Unpivot(#"Changed Type", {"Last7Days", "Last30Days", "Last60Days", "Last90Days"}, "Date Range", "Value")

yingyinr_1-1623654566004.png

2. Create a date range dimension table

yingyinr_2-1623654723373.png

3. Create matrix visual (Rows: ID    Columns: Data Range    Values: Value)

yingyinr_0-1623654405250.png

Best Regards

Community Support Team _ Rena
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

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

I created a sample pbix file (see attachment), please check whether that is what you want.

1. Select the columns "Last7Days", "Last30Days","Last60Days", "Last90Days" and UNPIVOT these selected columns

= Table.Unpivot(#"Changed Type", {"Last7Days", "Last30Days", "Last60Days", "Last90Days"}, "Date Range", "Value")

yingyinr_1-1623654566004.png

2. Create a date range dimension table

yingyinr_2-1623654723373.png

3. Create matrix visual (Rows: ID    Columns: Data Range    Values: Value)

yingyinr_0-1623654405250.png

Best Regards

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

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.