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! Request now

Reply
nleuck
Post Patron
Post Patron

Card display with Don't Summarize option workaround

Hello Everyone,

 

I'm trying to display a Years of Service card in Power BI. I have a column that has Employee Hire Date. I've created a column in Power BI called Today's Date using NOW( ). The problem I'm running into is when I put Years of Service on a card Power BI doesn't have a Don't Summarize option for that field. My only options are: Sum, Average, Minimum, Maximum, Count(Distinct), Count, Standard deviation, Variance, Median. I'm using Direct Query so my options are limited on what formulas I can use. Does anyone know of a workaround?

 

Thanks,

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@nleuck 

Would you be able to add a measure to the model to calculate the value?

Years of Service = 
VAR _HireDate = SELECTEDVALUE(Employees[Employee Hire Date])
RETURN DATEDIFF(_HireDate,TODAY(),YEAR)

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@nleuck 

Would you be able to add a measure to the model to calculate the value?

Years of Service = 
VAR _HireDate = SELECTEDVALUE(Employees[Employee Hire Date])
RETURN DATEDIFF(_HireDate,TODAY(),YEAR)

 

@jdbuchanan71 Thank you! That seemed to work. I double checked a few different examples and they all worked perfectly.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors