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

Help with a measure that displays a total in each row

Hello, 

 

I'm just starting with measures and have been trying to create a measure that will display the total of all of my true sold assets in a column for each id to view in a visual tooltip. I used my true sold measure as my starting point and tried to integrate ALLSELECTED into it to no avail.

 

Below is my sample data and the desired columns are bordered. My true sold measure works as expected, but I cannot figure out how to get a measure to display what is in the True Sold All column.

 

 

Screenshot 2023-06-02 210326 - Copy.png

 

Thank you for any help!

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @ejf18 ,

 

I suggest you to try measures as below.

True Sold = 
 CALCULATE(DISTINCTCOUNT(Repairs[Asset]),Repairs[Sold] = TRUE())
True Sold All = 
 CALCULATE(DISTINCTCOUNT(Repairs[Asset]),FILTER(ALL(Repairs),Repairs[Sold] = TRUE()))

Result is as below.

vrzhoumsft_0-1685957859916.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

Hi @ejf18 ,

 

I suggest you to try measures as below.

True Sold = 
 CALCULATE(DISTINCTCOUNT(Repairs[Asset]),Repairs[Sold] = TRUE())
True Sold All = 
 CALCULATE(DISTINCTCOUNT(Repairs[Asset]),FILTER(ALL(Repairs),Repairs[Sold] = TRUE()))

Result is as below.

vrzhoumsft_0-1685957859916.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, this worked for me! Whenever I attempted to do it myself I kept placing the ALL after everything and not in the middle. Thank you again!

some_bih
Super User
Super User

Hi @ejf18 to count all sold without any filter for ID's it is simple COUNTROWS ('Repairs'). I hope this help





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






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.

Top Solution Authors