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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Syndicate_Admin
Administrator
Administrator

Calculation between dates

Hello community,

I'm trying to add a waterfall diagram to my report to show the tons coming in and out, but the problem is that my history I separate it only in the "M" shift and separated by days, as seen in the diagram.

Kddk852_0-1660578162570.png

I have my variation table with inputs and outputs between each shift

Kddk852_1-1660578363262.png

However, I have noticed that I have to add the variation of the shift of two different dates (For example, Shift "V" July 12 + Shift "M" July 13), since what my waterfall diagram does is add the two shifts of the same day (Shift "M" July 12 + Shift "V" July 12) which is as shown in the photo

Kddk852_2-1660578609010.png

Here's what Power BI adds up

Kddk852_4-1660582385398.png

And this is what I want you to add up

Kddk852_5-1660582433363.png

Thanks in advance

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

Hi, @Syndicate_Admin 

You can consider creating a custom category based on 'Turno' and 'Fecha LC'.

Calculated column:

 

Category =
IF (
    'Table'[Turno] = "V",
    'Table'[Fecha LC] & "V to " & ( 'Table'[Fecha LC] + 1 ) & "M",
    'Table'[Fecha LC] - 1 & "V to " & 'Table'[Fecha LC] & "M"
)

 

Then, replace ‘Fecha LC' with the new field 'Category' and apply it to the category of the waterfall chart.

 

Best Regards,
Community Support Team _ Eason

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @Syndicate_Admin 

You can consider creating a custom category based on 'Turno' and 'Fecha LC'.

Calculated column:

 

Category =
IF (
    'Table'[Turno] = "V",
    'Table'[Fecha LC] & "V to " & ( 'Table'[Fecha LC] + 1 ) & "M",
    'Table'[Fecha LC] - 1 & "V to " & 'Table'[Fecha LC] & "M"
)

 

Then, replace ‘Fecha LC' with the new field 'Category' and apply it to the category of the waterfall chart.

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.