Forum Discussion
summing up multiple kpi's
- Anonymous6 years ago
Greg_Decklerwith your help I was able to get to a solution that worked. Thanks so much!
Here is what I used:
Reconciled YTD Revenue2 = CALCULATE('Flu Shipped'[Total Shipped Value],FILTER('Flu Shipped','Flu Shipped'[Salesperson Group]<>"Osram"),Flu_Snapshots,( Flu_Snapshots[Description])IN { "FLU All Revenue Accounts YTD - 40000", "FLU All Revenue Accounts YTD - 40005", "FLU All Revenue Accounts YTD - 40010", "FLU All Revenue Accounts YTD - 40075", "FLU All Revenue Accounts YTD - 40300", "FLU All Revenue Accounts YTD - 40400", "FLU All Revenue Accounts YTD - 49000" },CALCULATETABLE(DATESYTD ( Dates[Date] ),Dates[DatesWithShipments] = TRUE))
Hi Greg_Deckler
Thanks for the quick reply. I tried your formula but I think what it is missing is the descriptions of the respective codes (that may not have been obvious from my initial post). I ended up with this, which works well, other than it extends out past months where there is no data (shows the same value for the remaining months in a bar chart for example). Not a huge deal and I think I can figure that out.
Not sure if there is a way to adapt your formula as I know there are always several ways to skin the cat in PBi.
Well, you could always turn that into a VAR and then have a quick check in your RETURN to return BLANK perhaps.