Forum Discussion
Merge in a single Line Chart two visuals with different dates columns
- Anonymous4 years ago
Hi Anonymous ,
I suggest you to create a virtual table in var and then calculate the running total.
My measure:
IFD_Actual = VAR _VIRTUAL_TABLE = ADDCOLUMNS ( ALL ( 'Date 1' ), "TEST", CALCULATE ( COUNT ( 'MODEL 60'[IFD Actual] ), USERELATIONSHIP ( 'MODEL 60'[IFD Actual], 'Date 1'[Date] ) ) ) RETURN SUMX ( FILTER ( _VIRTUAL_TABLE, [Date] <= MAX ( 'Date 1'[Date] ) ), [TEST] )In my sample, [Date] column in my table visual is from 'Date 1'. So the filter in sumx is [Date] (from virtual table) <= MAX('Date1'[Date]).
Note: We need to add the [Date] column in table visual in Max field in sumx filter.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Dear amitchandak , thanks a lot for your reply, I tried as you indicated but it doens't work properly:EDIT: I analysed carefully the problem and in the Userelationship I have to use IFD Actual and not IFD Planned as I did, the problem is that with IFD Actual , due to the filter that I'm using, the final graph is empty. So I have to find another way to do the same thing that the filter does
I'm close, I need only that the IFD actual count has a cumulative function
- Anonymous4 years agoNot applicable
Hi Anonymous ,
I suggest you to create a virtual table in var and then calculate the running total.
My measure:
IFD_Actual = VAR _VIRTUAL_TABLE = ADDCOLUMNS ( ALL ( 'Date 1' ), "TEST", CALCULATE ( COUNT ( 'MODEL 60'[IFD Actual] ), USERELATIONSHIP ( 'MODEL 60'[IFD Actual], 'Date 1'[Date] ) ) ) RETURN SUMX ( FILTER ( _VIRTUAL_TABLE, [Date] <= MAX ( 'Date 1'[Date] ) ), [TEST] )In my sample, [Date] column in my table visual is from 'Date 1'. So the filter in sumx is [Date] (from virtual table) <= MAX('Date1'[Date]).
Note: We need to add the [Date] column in table visual in Max field in sumx filter.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.