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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.