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
MigWare
Helper I
Helper I

Filtered Measured, returning the value of a filtered column

Hi,

 

Have two colums from a worksheet that contains several other colums, Value and Status. Values contains the sales numbers and Status contains Yes and No.

Trying to do a measure to show the filter Values of Yes and the filter Values of No

ValuesYes = Calculate( SUM ( 'Worksheet' [Value] ) ; Filter ( 'Worksheet' ; 'Worksheet' [Status] = Yes))

 

Gives an error, saying that failed to resolve name 'Yes'.

 

What I´m a missing?

 

Thanks for the help,

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Try

ValuesYes = Calculate( SUM ( 'Worksheet' [Value] ) ; Filter ( 'Worksheet' ; 'Worksheet' [Status] = "Yes"))

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

Try

ValuesYes = Calculate( SUM ( 'Worksheet' [Value] ) ; Filter ( 'Worksheet' ; 'Worksheet' [Status] = "Yes"))

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.