Skip to main content
cancel
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

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
v-shex-msft
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 
Regards,

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

Announcements
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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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