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

View all the Fabric Data Days sessions on demand. View schedule

Reply
AC23VM
Helper II
Helper II

A tricky visualisation / measure

Hi.  Can anyone please help me with visualising something.  I'm struggling to articulate what I'm trying to do, so please bear with me!

I have a dataset about rework activities.  I want to determine what rework is In Progress, Completed, Overdue, and Rolling.  The first 3 are relatively simple.

 

In Progress:

Rework Status = In Progress or Sent

Journey Outcome <> No Harm with Obvs 

Rework Deadline = Today or Any future date

 

Completed:

Rework Status = Completed

Journey Outcome <> No Harm with Obvs

 

Overdue:

Rework Status = In Progress or Sent

Journey Outcome <> No Harm with Obvs 

Rework Deadline = Before today's date

 

Where I'm falling down is Rolling.  Rolling is all of 'Overdue,' but also it's now past the 1st of the following month.  For example, if piece of rework went Overdue in December, and it's still Overdue in January, it's now both Overdue and Rolling.  

 

I've tried this as a column and line chart, where the X axis is the date the rework was requested, and the line is the rolling volume.  What ends up happening is it shows the rolling volume based on the month they were raised (because of the X axis).  

AC23VM_0-1737986711186.png


You can also see here, the rolling and overdue volumes are identical, so I'm not quite capturing the data I want.  This is where I'm having trouble articulating.  Rolling IS Overdue, but it's more trying to capture when they started rolling, and the fact that they are now part of a 'future' month's Overdue volume, i.e., if there are 14 Overdue in December, how many of those were raised and went overdue in December, and how many have rolled from previous months?

To get around the issue of them showing in the months they were requested, a more experienced colleague tried to add a blank calendar table and apply them to that, but it did this:

AC23VM_1-1737986898487.png


Below is what we tried to capture as Rolling:

 

Rolling - Deadline + 1 Month =

Date.AddMonths([#"Re-WorkDeadline"], 1)

 

Rolling - Date it becomes rolling =

Date.StartOfMonth([#"Rolling - Deadline + 1 Month"])

 

Rolling - Date it becomes rolling & Overdue - Sent / In Progress & Act / Pot Har =

if [#"Overdue”] = 1 then [~”Rolling - Date it becomes rolling”]

 

But it's just not quite working.  I made a dummy dataset if someone could help me, but I can't upload an xlsx file, so not sure how to add that.  Please feel free to hit me up with any questions or clarifications.

 

7 REPLIES 7
AC23VM
Helper II
Helper II

Does anyone know why applying a generic calendar has this effect?  I've messed around with the relationship between the two tables, but it doesn't seem to make any difference.  Not only does this not fix my initial issue of getting the Rolling figure to work, it breaks every other part of the visualisation.  I'm lost.

AC23VM
Helper II
Helper II

Thanks both.  I figured that out, made it, and this is the result:

AC23VM_0-1738056059166.png


If I just out both measures in the Y axis, it's this:

AC23VM_1-1738056109521.png

 

Anonymous
Not applicable

We are absolutely delighted to hear that the issue has been resolved. If you’re inclined, you might consider accepting this solution, as it could also assist other community members facing the same problem, enabling them to find a resolution more swiftly.
 

vlinyulumsft_0-1738057084814.png

 

Of course, if there is anything else we can do for you, please do not hesitate to contact us.

Looking forward to your reply.

Best Regards,

Leroy Lu

Haha.  No, it hasn't been resolved.  That's not working.  That's me demonstrating that it doesn't work.  I already posted this problem in my original post.  You can see in the first image there are 14 Overdue in December.  Using the solution described here, that number has changed to 64, and then made those volumes uniform across every date.  It's clearly not working.



bhanu_gautam
Super User
Super User

@AC23VM , Try using

 

Create a calculated column to determine if a rework item is rolling

RollingStatus =
VAR OverdueDate = [Rework Deadline]
VAR CurrentDate = TODAY()
VAR FirstOfNextMonth = EOMONTH(OverdueDate, 0) + 1
RETURN
IF(
[Rework Status] IN {"In Progress", "Sent"} &&
[Journey Outcome] <> "No Harm with Obvs" &&
OverdueDate < CurrentDate &&
CurrentDate >= FirstOfNextMonth,
"Rolling",
BLANK()
)

 

Ensure you have a calendar table to manage dates effectively

Calendar =
ADDCOLUMNS(
CALENDAR(MIN('ReworkData'[Rework Deadline]), MAX('ReworkData'[Rework Deadline])),
"Year", YEAR([Date]),
"Month", MONTH([Date]),
"MonthName", FORMAT([Date], "MMMM"),
"YearMonth", FORMAT([Date], "YYYY-MM")
)

 

Create measures to calculate the rolling volumes based on the defined rolling status

RollingVolume =
CALCULATE(
COUNTROWS('ReworkData'),
'ReworkData'[RollingStatus] = "Rolling"
)

OverdueVolume =
CALCULATE(
COUNTROWS('ReworkData'),
'ReworkData'[Rework Status] IN {"In Progress", "Sent"} &&
'ReworkData'[Journey Outcome] <> "No Harm with Obvs" &&
'ReworkData'[Rework Deadline] < TODAY()
)

 

X-Axis: Use the YearMonth column from the calendar table.
Y-Axis: Use the RollingVolume and OverdueVolume measures.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi there,  Trying the RollingStatus gives me a 'Token Eof expected' error:

AC23VM_0-1737991062801.png

 

Anonymous
Not applicable

Thanks for the reply from bhanu_gautam , please allow me to provide another insight:

Hi, @AC23VM 
Thanks for reaching out to the Microsoft fabric community forum.

This is because your [Rework Deadline] is a column name. In a calculated column, you can try entering a single quote (') first to get a prompt. This will help you reference the column name more accurately and avoid errors.

vlinyulumsft_0-1738051226944.png

Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
 

Best Regards,

Leroy Lu

 

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