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
BeemsC
Resolver III
Resolver III

Dial Gauge problem

Hello experts,

I have an interesting problem.
For my sales dashboard i need to make an actual target in the custom visual ''Dial Gauge''.
The database looks like this:
voorbeeld tafel.png

The filter and Dial gauge look like this:dial gauge.png
We use the following formula at the moment to get the target (point where orange goes to green)

PrognosemarginYTD = (SUM(tbl_aw_VC672_progmarginsalesperson[Progn_Margin_Amount]) / SUM('YEAR'[NumberOfDays]))*SUM('YEAR'[CurrentDay])


The problem is, it is not dynamic at the moment when i try filtering on months.
Ive tried creating a target for each month, but it doesnt work since its far away from 100% always at the start of the month..

Basically the problem is, that when u select the latest month to filter it gets all days.
But i only want to filter the days of this month uptil now .. So only 6 days for today

I have a Dim_date table

Does anyone have any ideas?

 

1 ACCEPTED SOLUTION

Fixed it by removing everything after today in my OrdinalDate column (1-365)

View solution in original post

3 REPLIES 3
BeemsC
Resolver III
Resolver III

I had an idea:
I use the following formula:

Target new = DISTINCTCOUNT(DIM_DATUM[DAY_OF_YEAR]) * [Prognmargin_Amount_1day_mes]


Is it possible to say the day of year cant exceed the current day of year. So in this case like 270 or something.
I already have a formula which calculates current day ..

Thanks in advance !

 

I've tried the following:

Target = IF(DISTINCTCOUNT(DIM_DATUM[DAY_OF_YEAR]) < [Current day];DISTINCTCOUNT(DIM_DATUM[DAY_OF_YEAR]) * [Progn_Amount_1day_mes])

But it doesn't work, because when i go in the 10th month now, target goes to 0

 

Fixed it by removing everything after today in my OrdinalDate column (1-365)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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