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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Work down curve

Need help with making a work down curve.

 

PEL_IDCREDIT DATEDEPARTMENT
1012019-12-19A
1022020-01-11B
1032020-02-09A
1042020-03-22 
105  
106  

 

PELS with no credit date has not been completed yet. 

Need a formula to get the following table:

DATEPELS LEFT
JAN-205
FEB-204
MAR-203
APR-202
MAY-20 
JUNE-20 
JUL-20 
AUG-20 
SEP-20 
OCT-20 
NOV-20 
DEC-20 

 

I need to filter by department too. That's the major issue I am facing. Even if I manage to create a new table with the above columns, I cannot filter by department as there is no relation between the two tables.

Any help will really be appreciated! Thank you 🙂

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

 

1. Create a Calendar table.

Calendar = 
ADDCOLUMNS (
    CALENDAR ( DATE ( 2020, 1, 1 ), DATE ( 2020, 12, 31 ) ),
    "YearMonth", FORMAT ( [Date], "YYYYMM" ),
    "Month-Year", FORMAT ( [Date], "MMM-YY" )
)

 

2. Sort "Month-Year" column by "YearMonth" column.

sort.jpg

 

3. Create the relationship between your fact table and Calendar table.

relationship.PNG

 

4. Create a Measure like so:

PELS LEFT = 
VAR CurrentDate =
    MAX ( 'Calendar'[Date] )
VAR CurrentYear =
    YEAR ( CurrentDate )
VAR CurrentMonth =
    MONTH ( CurrentDate )
VAR FirstDay =
    DATE ( CurrentYear, CurrentMonth, 1 )
RETURN
    IF (
        MAX ( 'Calendar'[Month-Year] ) <> BLANK (),
        CALCULATE (
            COUNT ( 'Table'[PEL_ID] ),
            FILTER (
                ALLSELECTED ( 'Table' ),
                'Table'[CREDIT DATE] = BLANK ()
                    || 'Table'[CREDIT DATE] >= FirstDay
            )
        )
    )

 

5. Create a Table visual and a Clustered column chart.

chart.PNG

For more details, please check the attached PBIX file.

 

 

Best Regards,

Icey

 

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

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

 

1. Create a Calendar table.

Calendar = 
ADDCOLUMNS (
    CALENDAR ( DATE ( 2020, 1, 1 ), DATE ( 2020, 12, 31 ) ),
    "YearMonth", FORMAT ( [Date], "YYYYMM" ),
    "Month-Year", FORMAT ( [Date], "MMM-YY" )
)

 

2. Sort "Month-Year" column by "YearMonth" column.

sort.jpg

 

3. Create the relationship between your fact table and Calendar table.

relationship.PNG

 

4. Create a Measure like so:

PELS LEFT = 
VAR CurrentDate =
    MAX ( 'Calendar'[Date] )
VAR CurrentYear =
    YEAR ( CurrentDate )
VAR CurrentMonth =
    MONTH ( CurrentDate )
VAR FirstDay =
    DATE ( CurrentYear, CurrentMonth, 1 )
RETURN
    IF (
        MAX ( 'Calendar'[Month-Year] ) <> BLANK (),
        CALCULATE (
            COUNT ( 'Table'[PEL_ID] ),
            FILTER (
                ALLSELECTED ( 'Table' ),
                'Table'[CREDIT DATE] = BLANK ()
                    || 'Table'[CREDIT DATE] >= FirstDay
            )
        )
    )

 

5. Create a Table visual and a Clustered column chart.

chart.PNG

For more details, please check the attached PBIX file.

 

 

Best Regards,

Icey

 

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

Greg_Deckler
Community Champion
Community Champion

Do you mean a burn down chart? What is the expected output?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Capture.JPG

Yeah burn down chart. 

The output is basically the second table in the form of a chart.

 
 
 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors