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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
inescosta
Advocate II
Advocate II

gauge table target

Hello,

 

So I am using a guage to show a measure, that is realted to a slicer so I can have the value for the day I want.

 

I want the gauge to use a dynamic target, because the target for each day is different.

 

I have a table with the target for each day.

 

But I can't the the gauge to read my table as a target.

 

The target table is simple: one column with all the dates in a year and another with the target associated to that day.

 

I want to select a date in the slicer and get in the gauge the target for that date.

 

Thank you,

 

Inês

 

 

 

2 REPLIES 2
Greg_Deckler
Super User
Super User

Haven't tried this in this specific circumstance but you might be able to get there by creating another column "IsToday". Basically (psuedo-code):

 

IsToday = IF(FORMAT(TODAY(),"Short Date") = [Date],1,0)

Then, filter your gauge or report or page to only show IsToday = 1


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @inescosta,

I try to reproduce using the following sample data table.

1.PNG

Create a slicer including the date field. Create a gauge visualisation, select the actual value as value level, the target field as target value level. You can choose some calculation used to the selected fields, min, max, sum, average. When you select one value in slicer, the min, max, sum, average of the value is same and equals to itself. For example, I use max function. Please see the following screenshot, when I choose different date in slicer, the value and target change automatically.

Capture2.PNGCapture1.PNG

 

If this is not what you want, please post sample data for further analysis.

Best Regards,
Angelia

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.