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 all,
I need to produce a Card with a measure that will count a dated column, it should produce a count if it is within this year. so the below table has 7. I can get it to work with a helper column as shown in right but I would prefer to have a measure rather than a calculated column. Is this possible?
I tried:
Solved! Go to Solution.
Hi @JVP
A small correction
This Year = CALCULATE(COUNTROWS('Table'),YEAR('Table'[Date])=YEAR(TODAY()))
Hi @JVP
A small correction
This Year = CALCULATE(COUNTROWS('Table'),YEAR('Table'[Date])=YEAR(TODAY()))
Thanks very much! That worked. I guess I wa almost there...😁
User | Count |
---|---|
75 | |
70 | |
40 | |
30 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
50 | |
46 |