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
RH10
Regular Visitor

Creating a Card that shows the most recent date and the corresponding item's name.

Hello everybody.

 

I am new to Power BI and am having trouble with creating a Card visual that displays more than one piece of information. My data is more complicated than this but the two tables below give a general idea of how my data is structured: I have 1 table with all of the courses and another table with each individual course session and the corresponding date. On the card, I want to show the most recent date and the corresponding item for that date.

CourseIDCourse
c1Biology
c2Chemistry
c3History
c4Math
c5Language
SessionIDStudentsDateCourseID
s1162/20/2022 8:00 AMc3
s2202/22/2022 9:00 AMc2
s3242/21/2022 2:00 PMc1
s4302/19/2022 11:00 AMc5
s5142/20/2022 3:00 PMc4

I want the card to look something like this:

 

Text Box.PNGI want to use a Card visual because I need it to update when the dates change. So if the date for session s1 becomes 2/23/2022 8:00 AM, then the Card will update to say "Most Recent Course History 2/23/2022 8:00 AM." From doing research on this site and elsewhere around the web, I gather that I need to create a Measure that can give this information and use that to create the Card visual. Please help me create this measure.

 

Thank you!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

"I want to use a Card visual because I need it to update when the dates change"

 

Not sure how this is related.

 

" I gather that I need to create a Measure "

 

Not really.  Measures are only required if you expect user interaction with your visuals. 

 

Attached is a simple implementation using a calculated column and RELATED.  The card will update whenever your dataset is refreshed.

 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

"I want to use a Card visual because I need it to update when the dates change"

 

Not sure how this is related.

 

" I gather that I need to create a Measure "

 

Not really.  Measures are only required if you expect user interaction with your visuals. 

 

Attached is a simple implementation using a calculated column and RELATED.  The card will update whenever your dataset is refreshed.

 

Worked perfectly, thank you.

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.