Forum Discussion
Line chat with clustered column chart with category visual
- 2 years ago
Hello Anonymous , and thank you for sharing a question with the Community. The following is informational. Please remember to adhere to the decorum of the Community Forum when asking a question.
Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150
This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you. Proud to be a Super User!
Anonymous Review the attached screenshot and measures. For each month you want to present Current Year and Previous Year and Line as difference.
CY_Values = SUMX(FILTER('Table', YEAR('Table'[Date]) = YEAR(MAX('Date'[Date]))), 'Table'[Value])
PY_Values = SUMX(FILTER('Table', YEAR('Table'[Date]) = YEAR(MAX('Date'[Date]))-1), 'Table'[Value])
This is a by design behavior. In Stacked Column Chart, when you add multiple fields into value section, it is not allowed to add legend.
Hope it works.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Hi Fahadkadir,
Thanks for your reply. but is there is any visual in powerbi to build same visual like this :
Thanks
finaz