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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MD_BI_HUI
Regular Visitor

Visual within KPI card -Filtering issue between visual and date slicer

Hi 

im strugging with a line chart visual showing Actuals, Last year and RF(forecast) as lines with Markers for Current month and last month as FY (full year) where RF shall be dashed line starting from next month to till end of the year.
The measures comes directly from SSAS.
The problem comes with filtering from slicer (date -> year and month hierarchy) user want to select "current month "-> so it may vary from past month to even the following (as some of actuals are already in for 2 months in advance:/ ) 

I need to show entire year in X axis for RF and LY - > this measures shall not react to Date slicer, but Actual should

ive tried with interactions between date slicer and visual but then dax  Actual measure cant "catch" selected Months


on the other hand neither removefilters nor all dax functions works for RF and LY if Interactions are on and these measures shows data only till selected months on the slicer 
Do you have any idea how to build such measures ?

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @MD_BI_HUI ,

 

I assume that you calendar table as a retionship with the fact table, and that is the table you are using for your slicer..

 

If that is the case using the ALL or REMOVEFILTERS will not give you the interactions you want because you will have the context bing passed in the slice but also in the line chart.

 

For this type of interactions that you want to have a different time period than the one selected, in this case you select one month and get several months after, you need to have a disconnected table to use has your slicer and then do a mesaure similar to this:

 

Measure with filter = 
CALCULATE(
        [Actuals],
        Calendar[Date] >= MIN(CalendarFilter[Date])
        &&  Calendar[Date] >= MAX(CalendarFilter[Date]) + 365
     )

 

This is just an example in this case you get the values between the first of the select month and the next year month. You can then play around, and if you have a column ID with values for each month value with a index type value 1,2,3,4,5,...,N then you can make it even easier to move back or forward because you can just add or subctrat the number of months from that index.


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

MFelix
Super User
Super User

Hi @MD_BI_HUI ,

 

I assume that you calendar table as a retionship with the fact table, and that is the table you are using for your slicer..

 

If that is the case using the ALL or REMOVEFILTERS will not give you the interactions you want because you will have the context bing passed in the slice but also in the line chart.

 

For this type of interactions that you want to have a different time period than the one selected, in this case you select one month and get several months after, you need to have a disconnected table to use has your slicer and then do a mesaure similar to this:

 

Measure with filter = 
CALCULATE(
        [Actuals],
        Calendar[Date] >= MIN(CalendarFilter[Date])
        &&  Calendar[Date] >= MAX(CalendarFilter[Date]) + 365
     )

 

This is just an example in this case you get the values between the first of the select month and the next year month. You can then play around, and if you have a column ID with values for each month value with a index type value 1,2,3,4,5,...,N then you can make it even easier to move back or forward because you can just add or subctrat the number of months from that index.


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
v-venuppu
Community Support
Community Support

Hi @MD_BI_HUI ,

I hope the information provided is helpful.I wanted to check whether you were able to resolve the issue with the provided solutions.Please let us know if you need any further assistance.

Thank you.

v-venuppu
Community Support
Community Support

Hi @MD_BI_HUI ,

May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

Thank you.

v-venuppu
Community Support
Community Support

Hi @MD_BI_HUI ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @MFelix for the prompt response.

I wanted to check if you had the opportunity to review the information provided and resolve the issue..?Please let us know if you need any further assistance.We are happy to help.

Thank you.

MFelix
Super User
Super User

Hi @MD_BI_HUI ,

 

I assume that you calendar table as a retionship with the fact table, and that is the table you are using for your slicer..

 

If that is the case using the ALL or REMOVEFILTERS will not give you the interactions you want because you will have the context bing passed in the slice but also in the line chart.

 

For this type of interactions that you want to have a different time period than the one selected, in this case you select one month and get several months after, you need to have a disconnected table to use has your slicer and then do a mesaure similar to this:

 

Measure with filter = 
CALCULATE(
        [Actuals],
        Calendar[Date] >= MIN(CalendarFilter[Date])
        &&  Calendar[Date] >= MAX(CalendarFilter[Date]) + 365
     )

 

This is just an example in this case you get the values between the first of the select month and the next year month. You can then play around, and if you have a column ID with values for each month value with a index type value 1,2,3,4,5,...,N then you can make it even easier to move back or forward because you can just add or subctrat the number of months from that index.


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



MFelix
Super User
Super User

Hi @MD_BI_HUI ,

 

I assume that you calendar table as a retionship with the fact table, and that is the table you are using for your slicer..

 

If that is the case using the ALL or REMOVEFILTERS will not give you the interactions you want because you will have the context bing passed in the slice but also in the line chart.

 

For this type of interactions that you want to have a different time period than the one selected, in this case you select one month and get several months after, you need to have a disconnected table to use has your slicer and then do a mesaure similar to this:

 

Measure with filter = 
CALCULATE(
        [Actuals],
        Calendar[Date] >= MIN(CalendarFilter[Date])
        &&  Calendar[Date] >= MAX(CalendarFilter[Date]) + 365
     )

 

This is just an example in this case you get the values between the first of the select month and the next year month. You can then play around, and if you have a column ID with values for each month value with a index type value 1,2,3,4,5,...,N then you can make it even easier to move back or forward because you can just add or subctrat the number of months from that index.


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 Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors