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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Calculate doesn't work with my filter

I have a mesuare thar calculate a value basead in some rules, and it will return my total basead in another rules. The point is when I put my measure in a table, the filters thar I apply doens't work, and the mesuare filters the lines. I want that my measure can be filter by external filter. 

 

Example:

My table without the measure:

-The filter 'stage' is working well. 

gabriellifinck_0-1712858647875.png


My table WITH de measure:

-The mesuare filter the initiatives that have some return

gabriellifinck_1-1712858719193.png



My measure:

gabriellifinck_2-1712858787544.png



In another measure, I try to put some return conditional in cases I don't have a result, but in that way, the table still don't considering my filters. 

Someone can helpme?? 

5 REPLIES 5
Greg_Deckler
Super User
Super User

@Anonymous Try ditching CALCULATE and go with SUMX(FILTER(...), ...)

Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, 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

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

hello @Greg_Deckler 

It's my first post, sorry if I don't be clear. I serched some answered but I can't find. 
I expected that using my measure in the table, even tought I don't have a value, because my conditionals is blank, the measure don't filter my table, and the table showme all the results. 

In the firts picture, I see a lot of initiatives (first column). Example the initiative number 90074:

 

gabriellifinck_2-1712859950945.png


But in the second, with the measure, I can see no more. I think because the measurte don't return a value, it filters de table, and I can't see the initiative 90074.
And if I try to apply anothers filters, that doesn't work to.


What I expected for my measure:

ID_INITIATIVEESTAGIOMEASURE
1L2 
2L210
3L2-5


What I got applied the measure:

ID_INITIATIVEESTAGIOMEASURE
2L210
3L2-5

@Anonymous The easiest way to troubleshoot this is if you can provide sample source data as text and  your measure formula as text or provide a sample PBIX file to download. This way the scenario can be recreated and tested locally and a solution developmed versus guessing.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hello @Greg_Deckler!!

 

Here a PBIX with examples that the problem I got. I leave two tables, one with what I want, and another to show how the beahavior of the filters with the measure. 

 

PBIX TO DOWNLOAD 

 

 

gabriellifinck_0-1712864429950.png

 

I really thank you!

 

Anonymous
Not applicable

Hello @Greg_Deckler

Was it possible to make an analysis of my issue? Any ideas on how to solve it?

Thank you very much!!!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.