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

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.

Reply
Anonymous
Not applicable

Showing Data Until Specific Date

Hello everybody,

 

I`m having trouble with a bar chart where I show my production that was planned and my production that was made

the problem is that I'll only have my production made from previously days, but my planned production I have for each day of the month already. So how can I show my planned production until TODAY()-1? I tried to do :

CALCULATE(Sum(DadosProd[Produção Planejada A]);DateTable[Date]<TODAY()))
but that didn't work out.
1 ACCEPTED SOLUTION
R_H
Regular Visitor

Hi EduardoPach

 

you can try this:

CALCULATE(Sum(DadosProd[Produção Planejada A]);FILTER(DateTable;DateTable[Date]<TODAY()))

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

To make the dax formula work, you need to make sure there's relationship between 'DadosProd' and 'DateTable', for example, 'DateTable' and 'DadosProd' is one - many relationship based on the date column and the direction is from 'DateTable' to 'DadosProd'.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

R_H
Regular Visitor

Hi EduardoPach

 

you can try this:

CALCULATE(Sum(DadosProd[Produção Planejada A]);FILTER(DateTable;DateTable[Date]<TODAY()))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.