Forum Discussion
Can rows be hidden from a Table visual without removing the rows from a measure shown in the Table?
- 6 months ago
I have found the solution is to create a visibility flag measure to identify the rows that are within 24 months of the current date, as below, and then use that measure as a filter on the visual. For some reason the visibility flag measure does not working for 'Filters on this page' but does work for 'Filters on this visual'.
Within24Months (measure) =VAR CurrentDate = TODAY()VAR RowDate = MAX('Date'[Date])VAR MonthDifference = DATEDIFF(RowDate, CurrentDate, MONTH)RETURNIF(MonthDifference >= 0 && MonthDifference <= 24, 1, 0)
You can conditionally forma Show row to be transparent and replace the column name with a blank space.
Use this measure as a field value in conditional formatting dialogue
Transparent = "RGBA (0, 0, 0, 0 )"Hi danextian,
Am I understanding correctly that the "Transparent" measure used in the conditional formatting dialogue disappears the 'Show Row' column values?
The 'Show Row' column is for context and will be removed from final dashboard but thanks for the cool trick!
- danextian6 months ago
Super User
It just makes it invisible in the visual but if the data is exported, it will be included.