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
szervos
Regular Visitor

X-axis shows more values than those filtered

Hi,

 

I have two measurements for counting actual and potential patients on treatment.

 

On Treatment (Actual) = 
CALCULATE(
    COUNT(Patients[Patients]);
    FILTER(ALLSELECTED(Patients[PSP Duration Month]); Patients[PSP Duration Month] >=MAX(Patients[PSP Duration Month]))
)

On Treatment (Potential) = 
CALCULATE(
    COUNTA(Patients[Patients]);
    FILTER(ALLSELECTED(Patients);Patients[Current Month in PSP] >= MAX(Patients[PSP Duration Month]))
)

and in the x-axis I have added the PSP Duration Month which can be from 0 to 24.

 

When I filter the data (e.g. by filtering the year 2019) the range for PSP Duration Month is limited from 0 to 6, but this is not happening in the graph. Please check the screenshot.

tempsnip.png

 

Any ideas what is going on and the graph is kept displaying x-axis after 6?

 

Thank you in advance!

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @szervos 

You may try to add IF condition to filter the two measures < 6(Max value of [Current Month in PSP] column).If you need further help,please share the .pbix file.You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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