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
Anonymous
Not applicable

Calculated column based on measurements.

Please help me!

I'm needing a filter based on value in one measure.

I have a dimension "Client" which has 2 related tables. Sale and Potential. The relationship of these tables is 1 -> N.

I need to create a rating, being:

Has potential and has sale: OK
Has potential and has no sale: attention.

This needs to be done at the aggregate level (total client) and filter, in order to filter clients "Ok" and "Attention".

I made the measure calculated like this:
LegendMap = if ([qtd_cli_potential]> 0 && [qtd_cli_pot_vend]> 0; "Ok"; "Warning")

Setting up a table, placing the "Client" and this Map Legend field, works. However, I need to put it as a filter, where I can choose. And I can not add calculated measure to the filter.

I imagine the solution is to include a calculated column in the Customer dimension that makes the rule above. I tried to do, but it only makes over the total, brings the overall total to all customers. can you help me?
17 REPLIES 17

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.