Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Community,
Please review below and provide your suggestion,
I want to count organization based on “Decision”, I have used below formula and it not showing right result.
Count =
COUNTX(
FILTER ( 'Raw Data',' Raw Data '[Decision] = "Award" ),
''Raw Data''[organization])
Raw Data | |
Organization | Decision |
ABC | Award |
ABC | Award |
ABC | Decline |
XYZ | Award |
Final Result | ||
Organization | Decision | Count only based on Awarded |
ABC | Award | 2 |
XYZ | Award | 1 |
Solved! Go to Solution.
HI @tejapowerbi123 ,
Create a Calculated Column
Column = CALCULATE(COUNT(Table2[Decision]),FILTER( ALLEXCEPT(Table2,Table2[Organization]), Table2[Decision] = "Award"))
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
@swise001 I have used your suggestion and still not getting right number.
| Count only based on Awarded |
| 1 |
| 1 |
@AntrikshSharma thank you so much.I am trying to create in calculated column and i want to use column result to next formula.
If it is a calculated column then you can use this. Modify the IF statement as per your requirement.
Column =
VAR CurrentOrganization = RawData[Organization]
VAR RowsSatisfyingCondition =
COUNTROWS (
FILTER (
RawData,
RawData[Organization] = CurrentOrganization
&& RawData[Decision] = "Award"
)
)
VAR Result =
IF ( RawData[Decision] = "Award", RowsSatisfyingCondition )
RETURN
Result
HI @tejapowerbi123 ,
Create a Calculated Column
Column = CALCULATE(COUNT(Table2[Decision]),FILTER( ALLEXCEPT(Table2,Table2[Organization]), Table2[Decision] = "Award"))
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Thank you so much one for your great suggestions.
I would use
_Count =
CALCULATE(COUNTX('Raw Data'[organization]), ALLEXCEPT('Raw Data','Raw Data[Decision]))
(OR)
CALCULATE(COUNTROWS('Raw Data'),'Raw Data'[Decision]="Award")
Did I resolve your issue? Mark my post as a solution!
Appreciate your Kudos, Press the thumbs up button!!
Regards,
Pranit
I believe what you are looking for is below:
CALCULATE (
COUNTROWS('Raw Data'),
FILTER ( ALLEXCEPT('Raw Data','Raw Data'[Decision]),'Raw Data'[Decision]="Award")
)
Did I resolve your issue? Mark my post as a solution!
Appreciate your Kudos, Press the thumbs up button!!
Regards,
Pranit
Thank you so much Pranit, I have used your suggestion but result is still not right.
| Count only based on Awarded |
| 2411 |
| 2411 |
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |