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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
kohlivinayak
Resolver I
Resolver I

!!! URGENT !!! : Count User with last text column value

Hi Everyone

 

I have data like this

 

userid | skill  |  profeciency  |  date

1  |  Java  |  Low  |  Jan 1

1  |  Java  |  Medium  |  Jan 15

1  |  Java  |  High  |  Jan 30

2  |  PHP  |  Medium  |  Jan 10

2  |  PHP  |  High  |  Jan 15

1  |  PHP  |  Medium  |  Jan 10

1  |  PHP  |  High  |  Jan 15

 

In bar chart i want to show

skills on x-axis, count of user and last proficiency on legend

 

Lets say the selected date is 30th jan

so output should be

Java - high - 1

php - high - 2

 

Lets say the selected date is 15th jan

Java - medium - 1

php - high - 2

 

Lets say the selected date is 12th jan

Java - Low - 1

5 REPLIES 5
Stachu
Community Champion
Community Champion

Would this work:

CountUsers:=
VAR SelectedDate = LASTDATE('Table1'[date])
RETURN
CALCULATE(COUNTROWS(Table1),Table1[date]<=SelectedDate)

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

No this is still giving me same result

is the 'date' field formatted as date type?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

if you are getting the result can you share your pbix file?

Yes it is

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors