Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |