Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I would like to know how to translade my questions to power BI. I need to count some values from a table filtering by the current year and the current month. My table has this info:
LOGTABLE
YEAR: text(2018, 2017, etc.)
MONTH: text (01, 02, 03, etc.)
TOTAL: integer
It should be something like: "count TOTAL where MONTH = this.month and YEAR = this.year"
Any suggestion?
Thanks!
Solved! Go to Solution.
Hi @mdelasheras
Measure = CALCULATE(SUM('LOGTABLE (2)'[TOTAL]),FILTER('LOGTABLE (2)',[YEAR]=FORMAT(YEAR(NOW()),"General Number")&&[MONTH]=FORMAT(MONTH(NOW()),"General Number")))
Best Regards
Maggie
Hi @mdelasheras
Measure = CALCULATE(SUM('LOGTABLE (2)'[TOTAL]),FILTER('LOGTABLE (2)',[YEAR]=FORMAT(YEAR(NOW()),"General Number")&&[MONTH]=FORMAT(MONTH(NOW()),"General Number")))
Best Regards
Maggie
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
70 | |
38 | |
28 | |
26 |
User | Count |
---|---|
98 | |
96 | |
59 | |
44 | |
40 |