Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I want to create line chart and add specific one column as a legends also slicer choices. But charachter lengths varies in the column that I want to add. However I just want to take the rows its length equals to 3. Both for legend and slicer. How can I do that?
Thanks.
Solved! Go to Solution.
Hi @Byzbkr ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a measure as below to judge if the length of that column value is equal to 3
Flag = IF ( LEN ( SELECTEDVALUE ( 'Table'[category] ) ) = 3, 1, 0 )
2. Apply the visual-level filter for both the line chart and slicer with the condition(Flag is 1)
If my above understanding is wrong, please correct me. And later please share some sample data, backend logic and your expected result with special examples. Thank you.
Best Regards
Hi @Byzbkr ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a measure as below to judge if the length of that column value is equal to 3
Flag = IF ( LEN ( SELECTEDVALUE ( 'Table'[category] ) ) = 3, 1, 0 )
2. Apply the visual-level filter for both the line chart and slicer with the condition(Flag is 1)
If my above understanding is wrong, please correct me. And later please share some sample data, backend logic and your expected result with special examples. Thank you.
Best Regards
@Byzbkr , Not very clear. If you just want a three-digit from the current column name. You need to create a new column
example
3 char = left([column],3)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 33 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 65 | |
| 44 | |
| 30 | |
| 29 |