Forum Discussion
how to plot classification data made using a dax measure
Hello, I have the measure:
which classifies my customers based on how much they spent. I would like to plot it in a bar graph, that is, the X axis should be the classes "K", "A", "B" and "C" and the Y axis the quantity of each class. I tried to do it by creating a table as follows:
That's the idea, but I can't filter by date, as it's not possible to make any relationship. Is there any way I can plot this graph but it reacts to the year filter?
Below is the measure [Realizado], used in the classification:
- Anonymous2 years ago
You can try to create a new table, then put the type to the new table
e.g
Type={"A","B","C","K"}Then create a new measure
e.g
Counts = CALCULATE ( COUNTROWS ( dClientes ), FILTER ( dClientes, [Classificação Cliente Peças] IN VALUES ( 'Type'[Value] ) ) )Then put the Counts measure to the y-axis, then it can be affected by the date filter.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- AnonymousNot applicable
You can try to create a new table, then put the type to the new table
e.g
Type={"A","B","C","K"}Then create a new measure
e.g
Counts = CALCULATE ( COUNTROWS ( dClientes ), FILTER ( dClientes, [Classificação Cliente Peças] IN VALUES ( 'Type'[Value] ) ) )Then put the Counts measure to the y-axis, then it can be affected by the date filter.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Ashish_MathurSuper User
Hi,
It is a typical dynamic segmentation problem. Please see the attached file.