Forum Discussion
laciodrom_80
Helper IV
7 years agoDAX expression, need suggestion
Hi all, I have theese two tables with no relationship: Table1 Table2 I ...
- 7 years ago
OK, here is what I am thinking in Table2:
Column = VAR __low = IF([Index]=1,[MinMeasure],[MinMeasure]+([Index]-1)*[IntervalGapMeasure]) VAR __high= IF([Index]=15,[MaxMeasure],[MinMeasure]+[Index]*[IntervalGapMeasure]) RETURN COUNTX(FILTER('Table1',[Value]>=__low && [Value]<=__high),[Scenario Number])May need tweaking but something along these lines I believe.
laciodrom_80
Helper IV
7 years agoGreg_Deckler
Community Champion
7 years agoOK, here is what I am thinking in Table2:
Column =
VAR __low = IF([Index]=1,[MinMeasure],[MinMeasure]+([Index]-1)*[IntervalGapMeasure])
VAR __high= IF([Index]=15,[MaxMeasure],[MinMeasure]+[Index]*[IntervalGapMeasure])
RETURN
COUNTX(FILTER('Table1',[Value]>=__low && [Value]<=__high),[Scenario Number])
May need tweaking but something along these lines I believe.
- laciodrom_807 years ago
Helper IV
I was trying to make the report more configurable adding a filter by date column which is in Table1: changing date selection in the filter I'd like to have the updated values in the calculated column of Table2: how can I achieve this goal? I need a measure, right?
Thanks a lot