Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All,
I have to use a Line chart to show the sales unit by the date and when we select multiple stores then every store shows by separate color(Legend) as shown below:
Expected Result: But When we select All Stores it needs to show only a single line, for this, I have used following measure
Solved! Go to Solution.
Hi,
Did my last reply solve your issue?
If my answer has solved your issue, please mark it as a solution for others to see.
Thanks!
Best Regards,
Giotto
Hi,
Please try this:
AllSelected =
IF (
CALCULATE ( DISTINCTCOUNT ( Sales[Store] ), ALLSELECTED ( Sales[Store] ) )
< CALCULATE ( DISTINCTCOUNT ( Sales[Store] ), ALL ( Sales[Store] ) ),
SUM ( Sales[Quantity] ),
CALCULATE ( SUM ( Sales[Quantity] ), ALL ( Sales[Store] ) )
)Hope this helps.
Best Regards,
Giotto
No, It shows the same result as previous.
It is not working
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 43 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 123 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |