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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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

v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

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
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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

October NL Carousel

Fabric Community Update - October 2024

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