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

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
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.

Top Solution Authors