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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.