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
Syndicate_Admin
Administrator
Administrator

Help

Good afternoon, I have to make a Dashboard where it shows who is turning years today and how many years he meets,

the table I have connected to directquery from sql is :

ID Name Birthday

1 Andrew 2/9/1990

2 Jose 2/7/1995

I need to create a card where it shows me who meets today, but I could not be able to do it,

I thank you for your help as professionals.

Best regards

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Syndicate_Admin @;

If I understand right, you could create two measure as follows:

Namemet = CALCULATE(MAX([Name]),FILTER('Table',MONTH([Birthday])=MONTH(TODAY())&&DAY([Birthday])=DAY(TODAY())))
Year = IF([Namemet]<>BLANK(),DATEDIFF(MAX([Birthday]),TODAY(),YEAR))

The final output is shown below:

vyalanwumsft_0-1644807476240.png

If there's more than one person who meets the criteria, then card doesn't work, you can use a table. If I don't understand correctly, can you share the simple file and the result you want to output?


Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @Syndicate_Admin @;

If I understand right, you could create two measure as follows:

Namemet = CALCULATE(MAX([Name]),FILTER('Table',MONTH([Birthday])=MONTH(TODAY())&&DAY([Birthday])=DAY(TODAY())))
Year = IF([Namemet]<>BLANK(),DATEDIFF(MAX([Birthday]),TODAY(),YEAR))

The final output is shown below:

vyalanwumsft_0-1644807476240.png

If there's more than one person who meets the criteria, then card doesn't work, you can use a table. If I don't understand correctly, can you share the simple file and the result you want to output?


Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

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.