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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

New Member

Dos medidas

Buenas tardes a todos, 


Tengo dos medidas la primera es Cantidad_ATOT= CALCULATE(COUNT('BBDD_HARMONY_DIN (2)'[ATOT DATE]); USERELATIONSHIP('BBDD_HARMONY_DIN (2)'[Time]; EFFICIENCY[Time (Integer)])). Esta medida cuenta el numero de filas que tiene esta columna.

La otra medida es  QUANTITY2 = CALCULATE(SUM(EFFICIENCY[ADR CAP]); USERELATIONSHIP('BBDD_HARMONY_DIN (2)'[Time]; EFFICIENCY[Time (Integer)])), esta medida suma el valor de esta columna.

Lo que requiero es una medida que me ayude a sumar el resultado de estas dos medidas. Ya que si grafico las dos medidas no me permite poner el tipo de aviación en la Leyenda.
Muchas gracias a Todos por su tiempo y paciencia. 
Community Support
Community Support

Hi @viviana_obando,

You can also consider creating a calculated table with all the legend types, then you can use it on your chart legend fields and write a measure formula with switch function to switch display result based on current legend and category.

My Favorite DAX Feature: SELECTEDVALUE with SWITCH 

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors