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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Count days in single column until reference ID appears again

Hello,

I am new to powerBI and i am trying to create a calculated column that counts the active days until the same reference ID appears again in the table then stops counting.

 

Desired outcome is the Days active column as below.

 

I have looked through the forums and found something close

but it creates the value to the next row as days between and im not clear how to alter the DAX to give the desired outcome.

 

Reference NumberDate SubmittedStage NumberDays Active
101/01/2021161
102/02/2021263
103/03/20213 170
3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , what is logic of days Active

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Logic should be to count untill a stage number is => current stage number with matching Ref ID.

Hi,  @Anonymous 

I am sorry that your explanation has confused me even more, can you provide more data for research?

Best Regards,
Community Support Team _ Eason

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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