Forum Discussion
Calculated Measure - Multiple IF for Variable Targets
Hi,
I'm trying to do a multiple IF function as a calculated field, where I want to state that if a certain value in a slicer / filter is selected, it should then calculate the targets based on the value selected.
if i filter on say weekly pipeline created, i would want target to be sum of total target / 52 (weekly)
if i filter on say 30 days pipeline created, i would want target to be sum of total target / 12 (monthly)
Can you kindly advise how I can achieve variable targets based on filter.
Note that my pipeline data is on one table, targets on another table and the filter for week / month / qtr on anothe table that is linked to the pipeline table (but not to the target table). The target table is linked to the pipeline table though. So I have all the data, just unable to find a way to get it working. :-(
Appreciate if anyone can help with this measure at the earliest.
Thank you,
Ash
5 Replies
- Phil_SeamarkMicrosoft Employee
HI Anonymous
Any chance you can share what your tables look like?
What would you like to happen if you filter on both weekly or 30-day pipeline? or is this not possible?
- AnonymousNot applicable
Hi Phil_Seamark,
Please find below details as requested.
The result should be - If I select a slicer with a pipeline created when? value, it should bring up the value of the related pipeline and the targets for user(s) / product name(s) accordingly.
1. I realise need to find a way of connecting the 3 Created When columns in the pipeline table to the table that maps users and product name to the pipeline created values and also the targets table.2. So if the user selects the slicer with a value as Last 7 days, then the pipeline shown should be last 7 day and target should become sum of all target rows / 52. The same should work if I select the user name or product name (as the targets are classified accordingly)
3. If User selects multiple selections on the pipeline created slicer (for e.g. Last 7 days and Last 30 days), Pipeline should be shown for the last 30 days and target should be for the last 30 Days as well as Last 30 days includes the last 7 days
4. If User does not select anything, pipeline and target is sum of all rows- AnonymousNot applicable
Hi Phil_Seamark, Any update on how I can get the result I'm looking for? Appreciate any help on this.
Thanks,
Ash