Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mdelasheras
Helper I
Helper I

Help constructing questions / answers in panels

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!

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @mdelasheras

Measure = CALCULATE(SUM('LOGTABLE (2)'[TOTAL]),FILTER('LOGTABLE (2)',[YEAR]=FORMAT(YEAR(NOW()),"General Number")&&[MONTH]=FORMAT(MONTH(NOW()),"General Number")))

1.png

 

Best Regards

Maggie

View solution in original post

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @mdelasheras

Measure = CALCULATE(SUM('LOGTABLE (2)'[TOTAL]),FILTER('LOGTABLE (2)',[YEAR]=FORMAT(YEAR(NOW()),"General Number")&&[MONTH]=FORMAT(MONTH(NOW()),"General Number")))

1.png

 

Best Regards

Maggie

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.