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

Calculate filtered by specific Date using selectedvalue

Hi, 

 

I'm using this and its wotking fine: 

SUMMARIZE(ALL(dTanque);dTanque[Parque];dTanque[Produto];"ST";CALCULATE([.ST_Total];FILTER(dCalendario;dCalendario[DataBase]=TODAY())))

 

But instead of TODAY(), I want to filter depends on the date filter in dcalendario table, or a date filtered on my report, I've tried:

SUMMARIZE(ALL(dTanque);dTanque[Parque];dTanque[Produto];"ST";CALCULATE([.ST_Total];FILTER(dCalendario;dCalendario[DataBase]=selectedvalue(dCalendario[DataBase])))), but it's not working.

 

Help...

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft
Microsoft

Re: Calculate filtered by specific Date using selectedvalue

Hi @lbasilio,

>>But instead of TODAY(), I want to filter depends on the date filter in dcalendario table, or a date filtered on my report.

Do you mean the selectedvalue(dCalendario[DataBase]) changes with your filter, and the new table you created also changes automatically, right? If it is, we can't achieve it in Power Bi, because it's impossible to create a Calculated Column/Table Change Dynamically According to Slicer Selection in the Report, please review this knowledage base.

Best Regards,
Angelia

View solution in original post

3 REPLIES 3
SivaMani Solution Sage
Solution Sage

Re: Calculate filtered by specific Date using selectedvalue

@lbasilio,

 

Could you please share some sample data?

 

It would be helpful to assist you

Highlighted
lbasilio
Regular Visitor

Re: Calculate filtered by specific Date using selectedvalue

Example.jpg

This is my problem, when I use seletevalue in order to filter my measure st_total based on date filtered on dcalendario.

Microsoft
Microsoft

Re: Calculate filtered by specific Date using selectedvalue

Hi @lbasilio,

>>But instead of TODAY(), I want to filter depends on the date filter in dcalendario table, or a date filtered on my report.

Do you mean the selectedvalue(dCalendario[DataBase]) changes with your filter, and the new table you created also changes automatically, right? If it is, we can't achieve it in Power Bi, because it's impossible to create a Calculated Column/Table Change Dynamically According to Slicer Selection in the Report, please review this knowledage base.

Best Regards,
Angelia

View solution in original post

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors