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
suvechha
Helper IV
Helper IV

Dax expression help required.

Hi there,

How to add this in Measure table in Power BI App -

 

sum({1<Facility={"RNSH","HKH","RYD","NBH","MV"}>}0)

Thanks

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

Hi, 

According to your description, I can roughly understand your requirement, I’ve created some test data to use a measure to achieve your requirement, you can try this measure:

This is the test data I created:

vrobertqmsft_0-1636361436514.png

 

Result =

CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),[Facility] in {"RNSH","HKH","RYD","NBH","MV"}&&[Amount]>=0&&[Amount]<1))

 

And you can create a card chart to place this measure to get what you want:

vrobertqmsft_1-1636361436518.png

 

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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-robertq-msft
Community Support
Community Support

Hi, 

According to your description, I can roughly understand your requirement, I’ve created some test data to use a measure to achieve your requirement, you can try this measure:

This is the test data I created:

vrobertqmsft_0-1636361436514.png

 

Result =

CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),[Facility] in {"RNSH","HKH","RYD","NBH","MV"}&&[Amount]>=0&&[Amount]<1))

 

And you can create a card chart to place this measure to get what you want:

vrobertqmsft_1-1636361436518.png

 

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

BeaBF
Impactful Individual
Impactful Individual

@suvechha  Hi!
Could you explain better the expected result? Perhaps also providing an example of the data on which to calculate the measure.

B.

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.

Top Solution Authors