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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
viviana_obando
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. 
1 REPLY 1
Anonymous
Not applicable

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 
Regards,

Xiaoxin Sheng

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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