cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mdelasheras Regular Visitor
Regular Visitor

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

Accepted Solutions
Community Support Team
Community Support Team

Re: Help constructing questions / answers in panels

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

1 REPLY 1
Community Support Team
Community Support Team

Re: Help constructing questions / answers in panels

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