Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have 2 tables DImDate and CC Starters and Leavers both connected via 1-n relationship see below. When I try to create a measure using countrows it then returns incorrect result for APR-22 and May-22.
However the excel file that is connected to this has following numbers for the months of Apr and May 22 (see below)
Here is the DAX that counts the number of rows
Total Leavers Count =
CALCULATE(
COUNTROWS(
'CC Starters & Leavers_26_09_23'),
ALL('DW DimDate'[StandardDate]
))
Share sample pbix file to help you.
Thanks @Ahmedx
No that one didnt' work either, The correct count for Apr-22 should be 64 and I am getting 49
Dont know where the error is
Total Leavers Count =
CALCULATE(
COUNTROWS(
'CC Starters & Leavers_26_09_23'),
REMOVEFILTERS(),
VALUES(
('DW DimDate'[FirstDayOfMonth]
))
)
could you share your pbix-file?
I wrote this and you wrote something else
ЗНАЧЕНИЯ('DW DimDate'[FirstDayOfMonth])
No luck with tht column too
pls try this
Total Leavers Count =
CALCULATE(
COUNTROWS(
'CC Starters & Leavers_26_09_23'),
REMOVEFILTERS(),
VALUES('DW DimDate'[FirstDayOfMonth])
))
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 55 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 113 | |
| 106 | |
| 38 | |
| 35 | |
| 26 |