Forum Discussion
dax format and timeline visual
I have a switch customers and sales (%)
i used the format to show % on sale but it converts to text and visual has no values.
Is any workaround?
Maybe show other visual when changing the switch on slicer?
Hi giorgiokatr ,
Sorry for that we cannot put text in chart. But we create a sample you can refer.
1. Create a new table to be a slicer using Enter data.
2. Then we can create two measures, and configure one measure “%”.
Percent = IF(SELECTEDVALUE('Table (2)'[slicer])="Percent",CALCULATE(SUM('Table'[value])),BLANK())Value_ = IF(SELECTEDVALUE('Table (2)'[slicer]) = "Value_",CALCULATE(SUM('Table'[value])),BLANK())3. At last, we can create a chart and put them to Value, and the result like this, use the slicer to control % or value.
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- amitchandak
Super User
giorgiokatr , you should % from the data format. % should not be mutipled by 100
- giorgiokatr
Helper V
can not do this. My switch dax has a decimal value for the first switch and the second switch is percent. So i cant format the dax measure from there.
- v-zhenbw-msft
Community Support
Hi giorgiokatr ,
Sorry for that we cannot put text in chart. But we create a sample you can refer.
1. Create a new table to be a slicer using Enter data.
2. Then we can create two measures, and configure one measure “%”.
Percent = IF(SELECTEDVALUE('Table (2)'[slicer])="Percent",CALCULATE(SUM('Table'[value])),BLANK())Value_ = IF(SELECTEDVALUE('Table (2)'[slicer]) = "Value_",CALCULATE(SUM('Table'[value])),BLANK())3. At last, we can create a chart and put them to Value, and the result like this, use the slicer to control % or value.
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.