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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Shawn_yang
Regular Visitor

bar chart with start date to end date sum total value

I need caculate the value from start date to end date in barchart

this is my DAX:

Sum =
CALCULATE(
    SUM('FS13_處理對策_V8'[運行時間]),
    FILTER(
        ALL('FS13_處理對策_V8'),
        (
            ('FS13_處理對策_V8'[起始時間] <= MAX('日期表'[Date]) &&
            'FS13_處理對策_V8'[運行截止時間] >= MIN('日期表'[Date]))
            ||
            ('FS13_處理對策_V8'[起始時間] = 'FS13_處理對策_V8'[運行截止時間] &&
            'FS13_處理對策_V8'[起始時間] = MIN('日期表'[Date]))
        )
    )
)

Seem like it works but the date cant choose the right date

Shawn_yang_1-1720073993499.pngShawn_yang_2-1720074031435.png

Start date to end date is 2021/5/24-2021/5/30 but bar chart only show 2021/5/25-2021/5/30
and start date to end date is in same date it can't show too 
how can i change the DAX 

 

1 REPLY 1
Uzi2019
Super User
Super User

Hi @Shawn_yang 

Try below video
https://www.youtube.com/watch?v=fJzQiXF4kGs

https://www.youtube.com/watch?v=UmDc_D7zcTY

https://www.youtube.com/watch?v=gtC7i739L5I

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors