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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.