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
ChristianE
Frequent Visitor

Counting results of a measure in another measure, for use in a circle diagram

I have a made three measures which, when put into a table show the following:

HeadlinePartCompletenessTargetReached Target
ExampleRearMirror75 % 50%Yes
DescriptionThis is how they are groupedShows how many cars we have the part onThe amount we need the part on, taken from another tableYes/No
DaxFormulaNone
Var AntalModeller = [AntalModeller]
VAR Vare = CALCULATE(
DISTINCTCOUNT(SamVar[K3TYNR]);
FILTER(SamVar;SamVar[Vare?] = 1
)
)
Return
1+IF(not ISBLANK(Vare);
DIVIDE(Vare - AntalModeller ; AntalModeller )
)
None
IF('Gapmeasures'[Completeness] > AVERAGE('Target'[Target]);Yes;No)
 
What i want is to show how many of the parts are on/above target (preferably in a circle), like "5 out of 9"
But i can't seem to figure out how to make it calculate the reached target for every target in the same diagram
 
Can anybody help?
2 REPLIES 2
Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg,

I appreciate your posting, but can you be a little more specific as to where you think i could improve my post (since it, to me, does look like it ticks all the boxes)?

 

Granted the formatting could be better but for some reason it removed the grind in my table when i posted it

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