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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
aishak12
Helper IV
Helper IV

Dynamic Text Cards

Hi All, 

 

I am attempting to create dynamic text cards to have either "Actual" or "Budget" in the cards. 

In my data I have a column MonthHeader that has both of these fields. Now I wanted it to select the value based on the months. In another column is Period where I store the date values. So I need a scorecard to look at the month and then choose the field in MonthHeader

 

 

aishak12_0-1615417114850.png

 

Is this possible?

 

Thanks

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @aishak12 

 

Download sample PBIX file

 

You need to supply more information to get an accurate answer.  Please always supply some sample data.  I don't know what is in your Period column.  Real dates?  Month names as text?

I'm also not clear on how the Actual/Budget column relates to months.  Each month is either Actual or Budget?  You don't have Actualand Budget figures for every month?

You could try this measure which works with the sample data in my PBIX above.

Measure = CALCULATE(MIN('Table'[MonthHeader]), FILTER(ALL('Table'), MONTH('Table'[Period]) = MONTH(SELECTEDVALUE('Table'[Period]))))

actbud.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.