March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
How to create a measure that will sum "Hit" and "Missed" and then will be divided to the Total.
So it will be (2350 + 150) / 6219 = 40.20% (I need percentage).
Thank you all in advance!
Solved! Go to Solution.
Hey,
I'm sorry, i forgot to mention the base measure I created and that is used in all the ohter measures:
Count Target = COUNT('Table1'[Target])
Sorry
Tom
Hi, what about:
Percentage hit or missed = CALCULATE(SUM(Table1[Count of target]);Table1[Target]="Hit" || Table1[Target]="Missed")/SUM(Table1[Count of target])
/Johan
Hi @Johanno
thanks for the quick response, unfortunately [Count of target] is not a column. It is the Target column itself.
Hey,
I created these 3 measures:
the numerator
Count Target Hit and Missed = CALCULATE( [Count Target] ,ALL('Table1'[Target]) ,OR('Table1'[Target] = "Hit", 'Table1'[Target] = "Missed") )
the denominator
Count Target ALL = CALCULATE( COUNT('Table1'[Target]) ,ALL(Table1[Target]) )
and finally the division
the Ratio = DIVIDE([Count Target Hit and Missed], [Count Target ALL], BLANK())
using all these measure on a table creates this
Maybe this is what you are looking for
Regards
Tom
Hi @TomMartens
What's the [Count Target] under the 'Count Target Hit and Missed' stands for? When I tried the formula it says that the "value for 'Count Target' cannot be determined.
Thanks
Hey,
I'm sorry, i forgot to mention the base measure I created and that is used in all the ohter measures:
Count Target = COUNT('Table1'[Target])
Sorry
Tom
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |