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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Rob_Davidson
Regular Visitor

Trying to chart order status changes throughout a working day period using a variety of measures

Hi there, I am a relative novice when it comes to Dax so need some help if possible. I am faced with the prospect of taking the various stages of customer orders and graphing the changes over the current work day, which for this purpose is 6am until 5pm. The source data looks like:

Rob_Davidson_0-1710788991076.png

 

So far, using various fill up and fill down measures I have managed to get the status the order started the day with and for each minute from 6am to 5pm the status would show as the latest status at that point, changing to a new status when the status is actually updated - its worth pointing out that I have also added in a measure to group the statuses and swap them out for 4 distinct options. I am then trying to plot this on an area chart so that when you hover over a particular time point it would say a count of all of the orders at the various stages at that point. I hope I have explained it clearly and hope someone can help me out. I have provided screen shots of all of the measures I have used to get me to where I am at the moment.

 

Rob_Davidson_1-1710787282525.png

Rob_Davidson_2-1710787374911.png

 

Rob_Davidson_3-1710787444633.png

 

Rob_Davidson_4-1710787586347.png

 

Rob_Davidson_6-1710787797886.png

 

The Time table I have used:

Rob_Davidson_7-1710787987538.png

The next step in all of this is creating a measure that will count the number of distinct orders at each stage so it could be plotted in a chart such that when someone hovers over a particular time point they could see the number of orders at the 4 different stages at that point. Im struggling with the next measure(s) though in trying to get accurate counts by status. Any help much appreciated. Thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Rob_Davidson,

Measure expressions are calculated based on specific row and filter contents.

Row Context and Filter Context in DAX - SQLBI
If you want to invoke specific result, I’d like to suggest you create a variable table with summarize function to reproduce the calculations field and groups of that visualization.
Then you can add a custom field to invoke previous measure and use iterator aggregate function to summary these results.

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @Rob_Davidson,

Measure expressions are calculated based on specific row and filter contents.

Row Context and Filter Context in DAX - SQLBI
If you want to invoke specific result, I’d like to suggest you create a variable table with summarize function to reproduce the calculations field and groups of that visualization.
Then you can add a custom field to invoke previous measure and use iterator aggregate function to summary these results.

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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