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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

filter by Slicer related table

Good Day everyone,

I have 98 stores, 15 District & 3 Region. what i want when i filter the location from Slicer the Related District & Region Total Value Show in Card.

 

File Access: https://mega.nz/#F!TfAE2AZI!wWsZzeNUmVzfMC0yy5ROXw

Link: https://app.powerbi.com/groups/me/reports/58a774fc-7f88-498b-9acb-a80d3af34fb2/ReportSectiondd8153c5...

1 ACCEPTED SOLUTION

@Anonymous here are the measures which did that, use these two new measures in your KPI cards.

 

MTD Sales = TOTALMTD(SUM( SalesbyInvoice[Gross Profit]),Calender[Date])

MTD District = 
VAR __district = MAX ( Locations[District_ID] )
RETURN
 CALCULATE( [MTD Sales], ALL( Locations), Locations[District_ID] = __district )

MTD Region = 
VAR __region= MAX ( Locations[Region_ID] )
RETURN
 CALCULATE( [MTD Sales], ALL( Locations), Locations[Region_ID] = __region )

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

@Anonymous let me know if I understood your question correctly, for example if selected A38 location, it has district 10 and you want total districal 10 doesn't matter what location it belongs to, correct? And same applies for Region



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k  Yes, Correct.

@Anonymous this is what it looks if I selected store/location A10

 

image.png



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k Yes. Exactly I want that. how that will be possible?

@Anonymous here are the measures which did that, use these two new measures in your KPI cards.

 

MTD Sales = TOTALMTD(SUM( SalesbyInvoice[Gross Profit]),Calender[Date])

MTD District = 
VAR __district = MAX ( Locations[District_ID] )
RETURN
 CALCULATE( [MTD Sales], ALL( Locations), Locations[District_ID] = __district )

MTD Region = 
VAR __region= MAX ( Locations[Region_ID] )
RETURN
 CALCULATE( [MTD Sales], ALL( Locations), Locations[Region_ID] = __region )

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

thank you so much @parry2k issue is resolved.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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