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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
abhishek-93
New Member

How to Set Gauge Target?

Hi,

 

I have made a Gauge showing total sales MTD,QTD,YTD using Measures, now I want to show the target inoin gauge same like MTD, QTD & YTD. Can someone guide me.

 

Thanks in advance

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @abhishek-93 ,

 

You could create a slicer table which includes "MTD","QTD","YTD".

2-1.PNG

Then create a measure to show the value.

Measure =
VAR a = [MTD]
VAR b = [QTD]
VAR c = [YTD]
VAR d =
    SELECTEDVALUE ( 'Slicer'[Column] )
RETURN
    SWITCH ( d, "MTD", a, "QTD", b, "YTD", c )

As to target value, you could also refer to the measure above.

When you select "MTD" in slicer, the gauge will show total sales MTD and its target value.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi, @v-eachen-msft ,

 

I am already using date slicer to show the gauge, do you think we should use slicer again?

Anonymous
Not applicable

Hi, 

Can you please clarify what your target is and maybe provide some sample data and a sample of what your want your output to look like?

The guage visual only accepts one value, so are you wanting 3 guages one for YTD, QTD, MTD?

 

Thanks,

Kim 

Hi Kimberly_MT,

 

I have made 3 different Gauge showing  MTD, QTD & YTD of total unit sold.

 

now I want to set the target likewise MTD QTD & YTD so that when I select the date It shows me the unit sold and the target of that year.Gauge.JPG

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors