Reply
topazz11
Helper III
Helper III
Partially syndicated - Outbound

Slicers change/interactions

Hello,

How can I make the current and prior date filtered by item selection (apple or grape).

I expect to see the slicers (current, prior) to be changed based on the item selection.  

q1.JPG

 

here is example pbix file:

PBIX 

 

Thank you! 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Syndicated - Outbound

@topazz11 ,

Check the file at -https://www.dropbox.com/s/2w80tpj37wkiiz1/Q1.pbix?dl=0

Look at visual level filters and measure used in those and inactive relations.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

Syndicated - Outbound

@topazz11 ,

Check the file at -https://www.dropbox.com/s/2w80tpj37wkiiz1/Q1.pbix?dl=0

Look at visual level filters and measure used in those and inactive relations.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Syndicated - Outbound

Hi @topazz11 ,

The file that amitchandak created should work like a charm. I add a blog and a document where you could learn more about active relationship , inactive relationship and how to use them.

UseRelationship or Role-Playing Dimension; Dealing with Inactive Relationships in Power BI 

Active vs inactive relationship guidance 

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

Syndicated - Outbound

@topazz11, How does the selection of dimension impact date? Try to use time intelligence along Date calendar for standard current prior

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))

Last QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(('Date'[Date]),"12/31"))
This Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD((ENDOFYEAR('Date'[Date])),"12/31"))

Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
VijayP
Super User
Super User

Syndicated - Outbound

I could not understand your question. Can you please elaborate? Why You wanted to see the slicers in that why, what should be the outcome




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


avatar user

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)