Forum Discussion
Apply same dynamic formatting method for a multitude of columns in table
Hi tamerj1 Thanks for the solution, it works, however it is slow for my actual dataset it takes close to half minute to refresh the matrix. Any suggestion to speed up it.? my dax is :
Anonymous
Could be related to the visual rather than the code. However you can use variables
MEA =
VAR PercentKPIs =
VALUES ( 'KPI_PERC_F'[KPI] )
VAR SelectedKPI =
SELECTEDVALUE ( 'TBL'[KPI] )
RETURN
IF ( SelectedKPI IN PercentKPIs, FORMAT ( SelectedKPI, "0.0%" ), SelectedKPI )- Anonymous4 years agoNot applicable
Visual part it is less than 500ms on perforamnce analyzer. variables do help, the first variable does not impove the performance a lot but the second variable SelectedKPI on your code reduce the dax query time from 75 s to 16 s. one further question: if user want to view selected column say (Mar in my table above) all in % form regardless of the row content. Any modification we can do? Thanks
- tamerj14 years ago
Community Champion
Please clarify further
- Anonymous4 years agoNot applicable
I mean if we want data in selected column all in percentage format (for example 202202 and 202203 these two column, highlighted value to be shown in percentage), how can we modify the DAX. In short, the format varies with both rows and columns