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.
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:
The filter and Dial gauge look like this:
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?
Solved! Go to Solution.
Fixed it by removing everything after today in my OrdinalDate column (1-365)
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)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |