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
viviana_obando
New Member

add two measures

Good afternoon

I have two measures, the first is a

Cantidad_ATOT - CALCULATE(COUNT('BBDD_HARMONY_DIN (2)'[ATOT DATE]); USERELATIONSHIP('BBDD_HARMONY_DIN (2)'[Time]; EFFICIENCY[Time (Integer)])) (since in this table each row is a data) and the other a calculation of the
QUANTITY2 - CALCULATE(SUM(EFFICIENCY[ADR CAP]); USERELATIONSHIP('BBDD_HARMONY_DIN (2)'[Time]; EFFICIENCY[Time (Integer)])) from another table (since in this row each row already has a sum). At last the result of the two measures is a sum.
By graphing it looks like this
mm.PNG
But I need Unknown, N/A, Non-regular, and Regular to be left in a grouped column.
I know I have to put kind of avian in legend, but at the moment I do that, it just lets me put a measure in value for you. So I don't know what to do. Thanks a lot
3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @viviana_obando,

AFAIK, current power bi does not allow you to use multiple values and legend fields at the same time.

In my opinion, I'd like to suggest you create a new table with two category names as your measure formula names.
You can use it on the axis of your chart, add the column which you mentioned to the legend field.
After these steps, you can write a measure formula with a switch function to calculate based on the current axis and legend category to summary records and show value.

DAX – Making the “Case” for SWITCH() 

If these not help, you can share some dummy data with raw data structure and expected result to help us clarify your requirement and test coding formula.

How to Get Your Question Answered Quickly 
Regards,

Xiaoxin Sheng

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

Thank you very much, I'm going to improve the question.

Thankio to everyone, I´m going yto impruve my doubts.

PaulDBrown
Community Champion
Community Champion

@viviana_obando 

 

I'm not all too sure what you are trying to achieve. Please read this thread to help us help you:

How to get your question answered quickly 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






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.