Forum Discussion
pawelj795
6 years agoPost Prodigy
Filtered DateDIFF
Hi. I want to calculate measure which show a date difference between today and last transaction on particular item. But to this calculation I want to take only specified type of transactions (Trans...
pawelj795
6 years agoPost Prodigy
Anonymous
Calculated Column isn't solution. It filtered incorrectly my entire report.
I thought that in pie chart i could use one measure for every part of Aging.
I mean, it would be 5 consecutive measures:
1.Aging (0,15)
2.Aging (16,30)
3.Aging(31-60)
4. Aging(61-120)
5.Aging(120+)
My question is how to combine 3 below measures into one.
Spoiler
SWITCH(TRUE();
[Grouping]>120;" 120+";
[Grouping]>60 && [Grouping]<=120;" 61-120";
[Grouping]>30 && [Grouping]<=60;" 31-60";
[Grouping]>15 && [Grouping]<=30;" 16-30";
[Grouping]> 0 && [Grouping]<=15;"0-15";
BLANK())
IF(AND(MAX(WH_Invent_Trans[TransType]) IN {0;9}; MAX(WH_Invent_Trans[QTY])<>BLANK()); DATEDIFF(MAX(WH_Invent_Trans[Date Physical]);TODAY();DAY))
IF( MAX(DimDates[Date])<=TODAY()-1;
CALCULATE(
SUM(
WH_Invent_Trans[Inventory Value EUR]);
DATESYTD(DimDates[Date]));
BLANK())