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
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
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.