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 moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all,
I have a strange issue, could someone please help me with that.
I have a grid as in the picture below
I need to distinct count of employees with "Overreported in column "Test3" (negative value in column 'project gap")
I have a measure "Overreported Ppl" = CALCULATE(Distinctcount ('Table_Name'[Employee]), FILTER( 'Table_Name', 'Table_Name[Project Gap]<0))
However it returns me employees with positive numbers in 'project gap' column and who are marked as 'Underreported' in test3 column.
I cannot figure this out how come I get something like that? ![]()
Thank you
Solved! Go to Solution.
You may try the following measure.
Measure =
COUNTROWS (
FILTER (
VALUES ( 'Table_Name'[Employee] ),
CALCULATE ( SUM ( 'Table_Name'[Project Gap] ) < 0 )
)
)
You may try the following measure.
Measure =
COUNTROWS (
FILTER (
VALUES ( 'Table_Name'[Employee] ),
CALCULATE ( SUM ( 'Table_Name'[Project Gap] ) < 0 )
)
)
Hi ,
you this DAX , this will count emplyee where pr_gap has -ve value.
Overreported People = CALCULATE(DISTINCTCOUNT(valueTest[Employee]),
FILTER(valueTest,
SIGN(valueTest[Pr_gap])=-1
)
)
Thanks,
SS
Hi @BobBI
Thanks for reply, I used exactly your formula however the same result see below, this is new column called test overrep ppl
Try this
"Overreported Ppl" = CALCULATE(Distinctcount ('Table_Name'[Employee]), FILTER( All('Table_Name'), 'Table_Name[Project Gap]<0))
if it solve please mark as solved, and give me your positive feedback.
thanks for reply, unfortunately that doesn't work, i need to count employees and this formula returns completely different value
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 |
|---|---|
| 45 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 31 | |
| 28 | |
| 24 |