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

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

Reply
Kurtle
Helper II
Helper II

Filter X-axis without filtering Data

Hi Friends, 

 

I am currently working with an accounting model that contains 2 date tables. One for the accounting date and one for the activity date. I am trying to filter the data down based on the accounting date but displaying it on activity date. 

 

Annotation 2020-06-16 160402.png

The green box is my activity date and the red is accounting. So far so good. 

 

Now when I filter my chart to be from Jan 1, 2020 onwards I am losing some costs. The measure I am using is simple Field Expenses = Calculate( Sum( 'Line Items'[Amount]), 'Line Items'[Major Account] = "999") 

 

Does anyone have any suggestions on some Dax conditions that I can use to avoid this from happening? 

 

Here is the data model:

Annotation 2020-06-16 162245.png

 

Thank you in advance! 

 

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

HI  @Kurtle 

What is "when I filter my chart to be from Jan 1, 2020 onwards I am losing some costs." ? 

maybe you could adjust the measure as below:

Field Expenses =
CALCULATE (
    SUM ( 'Line Items'[Amount] ),
    FILTER ( 'Line Items', 'Line Items'[Major Account] = "999" )
)

 

If not your case, please share your sample pbix file and your expected output.

 

Regards,

Lin

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

@v-lili6-msft Oops. I should have clarified that. When I filter my activity dates down to be from Jan 1, 2020, onwards so that my bar chart only shows those bars  I lose some costs because there are 2 date columns in me Line Items Table which is getting filtered out during that process.

hi  @Kurtle 

You are using different column to filter and display data in the visual.

you filter the data down based on the accounting date but displaying it on activity date. 

This is a normal result, what your expected output? could you please share your sample pbix file and your expected output.

Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Regards,

Lin

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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