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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have created a measure that counts the number of rows based on Date & Name column.
However the measure is not getting changed according to the slicer selection. Please help me find the issue.
Here is my code:
CountVal = CALCULATE ( COUNTROWS (Sample), ALLEXCEPT (Sample,Sample[Date], Sample[Name] ) )
Sample table:
I am using date dimension for the date slicer.
Thanks!
Solved! Go to Solution.
Also:
CountVal1 = CALCULATE ( COUNTROWS ('Sample'), ALLEXCEPT ('Sample','Calendar'[Date], 'Sample'[Name] ) )
Also:
CountVal1 = CALCULATE ( COUNTROWS ('Sample'), ALLEXCEPT ('Sample','Calendar'[Date], 'Sample'[Name] ) )
Dumb question, is your Date dimension related to your fact table?
Yes. Other measures created on this fact table are in sync with the slicers.
Right, see my second response, you need to ALLEXCEPT your date dimension, not your fact table for the date at least.
Tried but still facing the same issue.
Hmm, mine seems to work like a champ. See attached.
Thank you so much! It works now! I was using DateId column instead of Date column in my measure. But my slicer was using date column.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |