Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Good Evening,
I am stumped on this one. I have created a custom column to get the data I need, and filter that which I do not.
My Column is as Follows -
Last PayDate Month = If(EOMONTH(ADPAllSiteWages[PayDate],0) - ADPAllSiteWages[PayDate] < 7, (ADPAllSiteWages[PositionID]))
[Paydate] - Date
[PositionID] - Text (Count Distinct is being used on the visual)
The purpose of this column is to count the employees on the last paydate (Friday) of each month. In the table view, this seems to perform as expected. However, when I add this column to my visual, each row is exactly one higher than it should be, and the subtotal does not accurately reflect the amounts being shown.
The correct subtotal should be 306 (Verified with external data) and even with the data shown, the correct subtotal would be 314.
Solved! Go to Solution.
Found the Solution after a good nights sleep. Issue was that Count Distinct includes non blank values. For some reason, filtering non blank values at the visual level was not doing anything.
To remedy, I made a measure to distinct count the column I made above, excluding the blanks with the Function DISTINCTCOUNTNOBLANK.
Employee Count (Distinct) = Distinctcountnoblank('ADPAllSiteWages'[Last Paydate Month])
Additional Material - YT Video on Exclude Blank Records
How Count Distinct Aggregates (See Answer)
Hope this helps someone down the road!
Found the Solution after a good nights sleep. Issue was that Count Distinct includes non blank values. For some reason, filtering non blank values at the visual level was not doing anything.
To remedy, I made a measure to distinct count the column I made above, excluding the blanks with the Function DISTINCTCOUNTNOBLANK.
Employee Count (Distinct) = Distinctcountnoblank('ADPAllSiteWages'[Last Paydate Month])
Additional Material - YT Video on Exclude Blank Records
How Count Distinct Aggregates (See Answer)
Hope this helps someone down the road!
User | Count |
---|---|
94 | |
86 | |
78 | |
70 | |
63 |
User | Count |
---|---|
114 | |
101 | |
97 | |
66 | |
59 |