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
Anonymous
Not applicable

Count number of times remaining a value shows in a column

Hi, I have this measure:

Measure 3 = CALCULATE(COUNT('Hours Data'[Full Name]), ALLEXCEPT('Hours Data', 'Hours Data'[Full Name]), GROUPBY('Hours Data', 'Hours Data'[Department Full Path]))

 And it produces this output in a table:

PowerBI.JPG

 

What I am hoping to achieve is for Measure 3 to show a decreasing count of how many records are left in the table, rather than a total count.  For example, it would start at 22 then 21, 20, 19, etc...

 

I greatly appreciate any help.

Thanks,

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

Can you try this measure, hope it meets your requirement.

Measure 3 = 

VAR I = MAX('Hours Data'[Index]) 
RETURN
CALCULATE(
    COUNTROWS('Hours Data'),
    'Hours Data'[Index] >= I,
    ALLEXCEPT('Hours Data','Hours Data'[Path Full Name])
)

 

Fowmy_0-1598726552122.png

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Anonymous 

Can you try this measure, hope it meets your requirement.

Measure 3 = 

VAR I = MAX('Hours Data'[Index]) 
RETURN
CALCULATE(
    COUNTROWS('Hours Data'),
    'Hours Data'[Index] >= I,
    ALLEXCEPT('Hours Data','Hours Data'[Path Full Name])
)

 

Fowmy_0-1598726552122.png

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy Thank you so much! Worked perfectly! Marked as the solution.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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