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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
PacosdjNew
Regular Visitor

Filter measure based on another measure

PacosdjNew_0-1661250963322.png

I've two complex measure and i would that the Measure2  is valorized only if the Measure1 is valorized and consequently the Total of the Measure2 should respect this rule. For better understand, I would this situation:

PacosdjNew_1-1661252432853.png

 

I've already tried to add a conditional valorization on Measure2 [IF( Measure1<>0,Measure2,0)] but don't work because the Measure1 is valorized on the row of the total.

Please, how can i do it?

Thanks

1 ACCEPTED SOLUTION

@PacosdjNew 
Please try

Measure2new =
SUMX (
    SUMMARIZE ( Fact, Dim[Column1], Dim[Column2], Dim[Column3] ),
    IF ( [Measure1] <> BLANK (), [Measure2] )
)

View solution in original post

10 REPLIES 10
tamerj1
Super User
Super User

Hi @PacosdjNew 

please try

Measure2new = IF( [Measure1]<>BLANK(),[Measure2])

Thanks but as said in the post it don't work because the Measure1 is valorized on the row of the total.

@PacosdjNew 

This should not make any difference 

Below is the result obtained:

PacosdjNew_0-1661267728984.png

where the measure2 it's made as you suggest

Thanks for the support

@PacosdjNew 
Is this is the expected result you are looking for? If not please indicate on the same screenshot the result that you would expect. If yes, kindly consider marking my reply as acceptable solution. Thank you

No... i would that the Measure2NEW is 4118 and not 4118+526 in the total.

Thanks

@PacosdjNew 
Yes this that be done. What are the names of the columns that are placed in the rows of your matrex? Are they from the same table?

On the row of the matrex there are fields from a dimension related to the fact on which are based the measures

@PacosdjNew 
Please try

Measure2new =
SUMX (
    SUMMARIZE ( Fact, Dim[Column1], Dim[Column2], Dim[Column3] ),
    IF ( [Measure1] <> BLANK (), [Measure2] )
)

Thanks so much

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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