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
ANKITBISANI
Advocate I
Advocate I

New table /Power Query based on Dynamic Filters from the slicers

Hello Experts ,

 

Lets suppose , i have a fact table  A which consist of 1000 rows and having column as Zone , City , Age group and Sales amount  as fact.

 

Now I have a dimention table B which consist of various attributes like Zone , City , Age group etc)

 

I want to reduce/Filter  the fact table based on Zone , City , Age group randomly from the slicers which I have.

 

Eg: Sometimes East zone is selected so that should only bring rows with east zone .....Then sometimes there is chnage in filter like city so accordingly it should filter.

 

1. is there any possibility to change the number of rows dynamically with changing filters with the help of Power/table query??

(there has been a 1: m relationship maintained between dimention and fact)

 

2. If ,Yes , can I have a custom column on the new table which would get created out of query.

 

Let us know , if more information required

 

Regards ,

Ankit

1 ACCEPTED SOLUTION

Hello @v-caliao-msft ,

 

I have handled it on the measure level and then put it into my reports .

 

In measure I have used ALLSELECTED function.

 

So the required dynamism was implemnted in the visual.

 

 

View solution in original post

2 REPLIES 2
v-caliao-msft
Employee
Employee

Hi @ANKITBISANI,

 

Why do you need to achieve this in Power query? Power BI provide a slicer visual to acheve this requirement in report level easily. And in your scenario, there are only 1000 rows in your fact table. Obviously, there won't be a performance issue.

 

Please refer to the link below to see the details about Slicer in Power BI.
https://powerbi.microsoft.com/en-us/documentation/powerbi-service-tutorial-slicers/

 

Regards,

Charlie Liao

Hello @v-caliao-msft ,

 

I have handled it on the measure level and then put it into my reports .

 

In measure I have used ALLSELECTED function.

 

So the required dynamism was implemnted in the visual.

 

 

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.