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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
dcorbin-wintell
Regular Visitor

Time in board COLUMN...

New to "M".... struggling...

Trying to use Add a time-in-state measure to a Power BI report - Azure DevOps | Microsoft Docs as a basis, but NOT "state", rather "Board column"....

My immediate problem is one calculation I don't see what is wrong...


CALCULATE (
MAX ( '#"PP04-WorkItemBoardSnapshot"'[DateValue] ),
ALLEXCEPT ( '#"PP04-WorkItemBoardSnapshot'", '#"PP04-WorkItemBoardSnapshot"'[WorkItemId] ),
'#"PP04-WorkItemBoardSnapshot"'[DateValue] < EARLIER ( '#"PP04-WorkItemBoardSnapshot"'[DateValue] )
)

I have tried every combination of quotes, and #  (dont thik I should need either since no spaces...but...
ErrorInPowerBI.PNG



1 ACCEPTED SOLUTION

Gotcha. Try using calculated column instead of a measure. Looks like that's what the article you mentioned is demonstrating. That may resolve the issue.

 

If this helps, please give it a thumbs up!

 

 

View solution in original post

9 REPLIES 9
Iryna_K
Frequent Visitor

Try Time in State for Azure DevOps extension as an alternative https://marketplace.visualstudio.com/items?itemName=SaaSJet.tis-azure .

It's not the solution for Power BI, but it's easier to use. Report generation is automatic. You only need to select time or work item intervals.

I hope you find this helpful solution.Time in BoardColumn.png

FlowViz
Helper III
Helper III

@dcorbin-wintell I have this information in the latest version of the free Power BI template FlowViz - https://github.com/nbrown02/FlowViz 

 

Time in board column.png

Anonymous
Not applicable

Hi @dcorbin-wintell ,

 

Looks like you want to create a measure? Sadly you can't use Earlier() function in a measure. You could try use < selectedvalue([datevalue]) instead. In addition, you want DAX help, please show some sample data and expected to us.

 

Best Regards,

Jay

Jay,

Thanks for the response.  The material I am trying to replicate (conceptually) is in the linked article. The DAta is a standard Microsoft DevOps Analytics Table (apparently board column changes are not stored in real time).

dcorbin-wintell
Regular Visitor

really the EARLIER that has me stumped...

dcorbinwintell_2-1635178583080.png

 

Gotcha. Try using calculated column instead of a measure. Looks like that's what the article you mentioned is demonstrating. That may resolve the issue.

 

If this helps, please give it a thumbs up!

 

 

Thanks, that got me past that first one....  Not it looks like the actual datapoints when a value has changed (for doing hisotry/trends) is not in the analytics at all 🙄. Instead there is a nightly snapshot, which does nothing to capture the flow (multiple chnages) within a day....

YukiK
Impactful Individual
Impactful Individual

You're trying to implement DAX in Power Query, which is not possible. DAX and M language is different in that the latter is used in Power Query (data transformation steps) and DAX is used after loading your tables.

 

For your case, use that DAX code by right clicking on a table after loading data into the data model, and choose "New Measure". And paste your code in the editor.

 

YukiK_0-1635177443962.png

 

 

Hope that makes sense!

Thanks for the quick response.... That was where I started... And this is what that yields...

dcorbinwintell_0-1635178441028.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.