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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Benx
Helper I
Helper I

DAX Help - Line Chart displays for full quarter

Hello All!  

I'm working with some sample Jira data, and trying to create a line chart that shows the changes in total Estimated Story Points, and Unestimated Story Points throughout a full quarter, running from 7/1 through 9/30. The sample data I'm working with only has data updates on 7/20, 7/21, 7/22, 7/25, 7/26, 7/28, 8/1, and 8/24, but I'm trying to get the line charts to start on 7/1, and display the last-updated totals through the end of the quarter.

 

Here's what I've been able to achieve so far:

Benx_0-1663003676116.png

 

Here are the two DAX measures I've used in the above visual:

Estimated Story Points (repeating) =
VAR StoryPoints =
    SUM ( 'Repeating Story Table Test'[Story Points] )
RETURN
    CALCULATE ( StoryPointsREMOVEFILTERS ( Dates[Date] ) ) + 0

Unestimated Stories (repeating) =
VAR StoryCount =
    DISTINCTCOUNT ( 'Repeating Story Table Test'[Story Issue Key] )
VAR UnpointedStories =
    CALCULATE (
        StoryCount,
        'Repeating Story Table Test'[Story Points] = BLANK ()
            || 'Repeating Story Table Test'[Story Points] = 0
    )
RETURN
    CALCULATE ( UnpointedStories, REMOVEFILTERS ( Dates[Date] ) ) + 0
 
Here's a view of the data I'm working with:
Benx_1-1663004392647.png

 

Here's a view of the Date/Calendar table the above table is related to using the Update date:

Benx_2-1663004432666.png

 

Any help you can offer wold be much appreciated!

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

Hi @Benx,

You can use the calendar table as the axis of the chart, modify your formula to change the condition to 'less than or equal to' the current date values, and add +0 after the formula to expand calculations on the date ranges.
After these steps, you need to add an if statement package above formula to compare the current date and quarter to confirm these calculations are processed on the specific date ranges.
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Benx,

You can use the calendar table as the axis of the chart, modify your formula to change the condition to 'less than or equal to' the current date values, and add +0 after the formula to expand calculations on the date ranges.
After these steps, you need to add an if statement package above formula to compare the current date and quarter to confirm these calculations are processed on the specific date ranges.
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.