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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply

Allow a visual to be filtered by product but not by time

Hi!

I have the below dashboard.  It shows forecast over time. 

 

Capture.PNG

 

 

In the left table, the products have been filtered by top 10 difference forecast vs sales in the last 3 months.  

 

In the right table, the products have been filtered by top 10 difference forecast vs sales in the last 12months.  

 

 

When I select one of the products in the tables, the charts above filter by both the product and the length of time that the table has been filtered on e.g.:

 Capture2.png

 

How do I keep the time unfiltered in the charts, while still allowing a filter by product?

 

Here is an example of one of the measures for future forecast:

SelectLPF = CALCULATE(
        SWITCH(TRUE(),
        VALUES(Z_UoM[UoM]) = "Volume EU", sum('Fact_L8'[LPF EU]),
        VALUES(Z_UoM[UoM]) = "Volume AC", sum('Fact_L8'[LPF AC] ),
        VALUES(Z_UoM[UoM]) = "Volume 9L", sum('Fact_L8'[LPF 9L]),
        sum('Fact_L8'[LPF HL])),
    FILTER(DimDate, DimDate[LongMonthYear] >=  DATE(YEAR(TODAY()), MONTH(TODAY()), 1)  ))

 

And for historic forecast:

Lag2 Forecast = CALCULATE(
        SWITCH(TRUE(),
        VALUES(Z_UoM[UoM]) = "Volume EU", sum('Fact_L8'[WD20 Lag2 EU]),
        VALUES(Z_UoM[UoM]) = "Volume AC", sum('Fact_L8'[WD20 Lag2 AC] ),
        VALUES(Z_UoM[UoM]) = "Volume 9L", sum('Fact_L8'[WD20 Lag2 9L]),
        sum('Fact_L8'[WD20 Lag2 HL])),
    FILTER(DimDate, DimDate[LongMonthYear] <  DATE(YEAR(TODAY()), MONTH(TODAY()), 1)  ))

 

Thanks!

 

1 ACCEPTED SOLUTION

Try on the bar chart to select the date column and show values without data:

MFelix_0-1618319935527.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
MFelix
Super User
Super User

Hi @dapperscavenger ,

 

One question do you want to keep the bar chart filtered but show all the dates is that it? Or yo don't want to have the bar chart filtered and keep it equal?

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



I would like the bar chart filtered by the product selected but not by the time period.

 

Same with the line chart.  

Try on the bar chart to select the date column and show values without data:

MFelix_0-1618319935527.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



unfortunately it did not work.  I will do something different to show the data instead

Hi @dapperscavenger 

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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