Forum Discussion
dynamic calculated column based n slicer text value
- 9 years ago
Hi aj1107,
Not like measures, calculate columns/tables are computed during database processing(e.g. data refresh) and then stored in the model, they do not response to user selections on the report.
So it is not possible to create a calculate column/table can change dynamically with user selections on the report.
In this scenario, you can create a measure instead, then show the measures on the Table/Matrix visual with the corresponding columns from your table. The formula below to create the measure is for your reference. :smileyhappy:
measure = IF ( HASONEVALUE ( Table2[slicer] ), IF ( VALUES ( Table2[slicer] ) = FIRSTNONBLANK ( Table1[plan], 1 ), "direct", "indirect" ) )Regards
Hi aj1107,
Not like measures, calculate columns/tables are computed during database processing(e.g. data refresh) and then stored in the model, they do not response to user selections on the report.
So it is not possible to create a calculate column/table can change dynamically with user selections on the report.
In this scenario, you can create a measure instead, then show the measures on the Table/Matrix visual with the corresponding columns from your table. The formula below to create the measure is for your reference. :smileyhappy:
measure =
IF (
HASONEVALUE ( Table2[slicer] ),
IF (
VALUES ( Table2[slicer] ) = FIRSTNONBLANK ( Table1[plan], 1 ),
"direct",
"indirect"
)
)
Regards