The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm trying to build a measure to calculate records.
In this measure I'm using the function Datesbetween.
It looks that that function working but when I add a slicer to this data the data will be the same.
What I'm doing wrong?
Records user = CALCULATE(
COUNTROWS('Query1'),
DATESBETWEEN(Datetable[date], MIN(vc_lot_lotuser[Start Date]), MAX(vc_lot_lotuser[End Date])),
USERELATIONSHIP(vc_lotuser[Lot User], Query1[LotId]))
hi @Jeffrey_VC
which column do you have for the slicer?
If it is date-relevant column, ensure to take the columns from the datetable.
This is the model:
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
9 | |
8 |