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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mvgust
Helper III
Helper III

Add results from consecutive days column

I was able to succesfully add a consecutive days columns using the below post:

 

https://community.powerbi.com/t5/Desktop/dax-grouping-consecutive-days/td-p/488880

 

I now need to use the results of consecutive days output to add the instances. So in the example below I need a measure that will disaplay 4  as the result for the the first grouping, 3 for the second grouping and so on.

 

Once I have that I'll be setting up an IF statement so if the new measure is >4, Yes otherwise No


add consecutive days.png

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @mvgust ,

 

If the value you are refering is a column you can do a similar measure to this one:

 

Counting_Values = COUNT('Table'[Consecutive Days]) 

 

However this needs some context meanig that you need to have the Consecutive days on a filter to get the data then for the next measure you need to do:

 

Yes/No = IF([Counting_Values]>4, "Yes", "No")

 

Has you can see below the values are presented, be aware that when you have more than one value the results may not be according to what you need has you can see on the total line.

MFelix_0-1606241976901.png

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @mvgust ,

 

Has the problem be solved? Please consider to mark the answer as solution if it works for you.

 

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.
MFelix
Super User
Super User

Hi @mvgust ,

 

If the value you are refering is a column you can do a similar measure to this one:

 

Counting_Values = COUNT('Table'[Consecutive Days]) 

 

However this needs some context meanig that you need to have the Consecutive days on a filter to get the data then for the next measure you need to do:

 

Yes/No = IF([Counting_Values]>4, "Yes", "No")

 

Has you can see below the values are presented, be aware that when you have more than one value the results may not be according to what you need has you can see on the total line.

MFelix_0-1606241976901.png

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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