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
vally57
Frequent Visitor

dax measure

i have a calculated column like this
IF('Facts'[Customer]=BLANK(),BLANK(),
Facts'[Return Delivery])
i tried to convert this to measure like this

IF(MAXX('Facts','Facts'[Customer])=BLANK(),BLANK(),SUM('Facts'[Return Delivery])),
but the measure i have created is not filtering the values if customer is blank for [Return Delivery], instear i'm getting sum[Return Delivery].Please help in modifying the above logic

TIA



1 ACCEPTED SOLUTION
v-yifanw-msft
Community Support
Community Support

Hi @vally57 ,
Depending on the information you provided, you can follow the steps below:

1.Add a measure.

Return Delivery Measure = 
CALCULATE(
    SUM('Facts'[Return Delivery]), 
    'Facts'[Customer] <> BLANK()
)

 

Final output:

vyifanwmsft_0-1710898230224.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

View solution in original post

2 REPLIES 2
v-yifanw-msft
Community Support
Community Support

Hi @vally57 ,
Depending on the information you provided, you can follow the steps below:

1.Add a measure.

Return Delivery Measure = 
CALCULATE(
    SUM('Facts'[Return Delivery]), 
    'Facts'[Customer] <> BLANK()
)

 

Final output:

vyifanwmsft_0-1710898230224.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

vally57
Frequent Visitor

@amitchandak can you help me on this

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.