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 August 31st. Request your voucher.

Reply
gracie494
Helper I
Helper I

Create a new Measure to show only the value based on another coloumn

For this table below, I would like to see a new coloumn  that only shows the "Active Learner" value where the Latest Status is 1. 

gracie494_0-1692867517120.png

Yearquarteractive learnerStatusLatest Value quarter
2021Q126  
2021Q226  
2021Q326  
2021Q426126
2022Q113  
2022Q213  
2022Q313  
2022Q413113

 

 

9 REPLIES 9
technolog
Super User
Super User

I hope this message finds you well. I've noticed that this solution remain unresolved. If any of you have managed to find a resolution to the issue, I kindly request that you share your solution for the benefit of the entire community. Alternatively, if you're still facing challenges, please do let us know as well.

Your insights and updates will greatly assist others who might be encountering the same challenge.

Girish_123
Helper I
Helper I

Girish_123_0-1693391130823.png

Latest value = CALCULATE(SELECTEDVALUE('Table'[Active learner]),FILTER('Table',SELECTEDVALUE('Table'[Status])=1))

Hi, it does not work because the status is numberic so when I try the filter for 'FILTER('Table',SELECTEDVALUE('Table'[Status])=1))' The status coloumn does not appear or not valid

if your status column is text data type then wrap 1 with double quotation "1" then try

The status coloumn is 'Numeric' but it does not appear as an option to select with the 'selectedvalue' function... not sure if its because its also a calculated meaure

ERD
Community Champion
Community Champion

@gracie494 , you can use a measure 

learner = IF(SELECTEDVALUE(Table[Status]) = 1, SELECTEDVALUE(Table[active learner]))

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

No it does not work unfortunately, it does not recognise the field 'Last Status' as a field... maybe because it is already a measure
ERD
Community Champion
Community Champion

Status is a measure?

learner = IF( [Status] = 1, SELECTEDVALUE(Table[active learner]))

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Thanks the formular is right but it does not return the value in the Active Values Coloumn as its numeric... this only works if the 'Active Values Coloum' was a text field

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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