March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello
I am trying something that should be very easy but I can't figure it out.
I have the data like this:
Date | Buyer | Product | Value |
12/12/2018 | Jon | Apple | 20 |
13/12/2018 | Anthony | Pear | 0 |
01/01/2019 | Sarah | Pear | 30 |
03/01/2019 | Sarah | Pear | 50 |
02/02/2019 | Jon | Apple | 10 |
03/02/2019 | Jon | Apple | 15 |
And I am just trying to show an evolution on the sales trought weeks or months. However, it shows me first grouped by year. Then I see the date hyerarchy that is by Year, Month, Week and Day. I just want the evolution month by month through the different years, but I can't separate them.
I also wanted to have the bar chart with both years side by side but I can't make it work. I thought of created a column with the year to use it as a category, but it should be an easier way.
Any help?
Thanks!
Solved! Go to Solution.
At the end I created a new meassure that is Year-Month, and then sorted alphabetically. I don't like it, but for now it does the job.
At the end I solved it with a date table with the information about the months, quarters, financial years, etc.
It's not ideal and tableau does it automatically, but it solved the issue! Using a date table is extremely useful.
At the end I solved it with a date table with the information about the months, quarters, financial years, etc.
It's not ideal and tableau does it automatically, but it solved the issue! Using a date table is extremely useful.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario.
You can create two column as follows.
Month-Year = FORMAT('Table'[Date],"YYYY-MM")
WeekOfYear = FORMAT('Table'[Date],"YYYY - \WeekWW")
Then you can create three ‘clustered bar chart’ visuals and a ‘matrix’ visual as below. Finally, you may see evolution on the sales by weeks or months with the slicer.
If I misunderstand your thought, please show me your expected output. I am glad to solve the problem for you. Here is my pbix
Best Regards,
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes something like this is what I want, but there is no other way through the normal visualizations? In Tableau you can group them in weeks, months, etc, so you can easily see the evolution.
I need something like the below, but I can't seem to be able to obtain a chart like the below.
@Anonymous I was able to create this with a line chart, with Date on the Axis, Product as the Legend, and Value as Values.
I believe this is what you're looking for?
Yes, even combined would have been nice. Did you use any particular calculated fields or just with the normal visualization options? How did you achieve it?
Thanks
Standard line chart visualization with Date on the axis, Product as the legend, and Value as values.
For a combined view, I created the below measure and then put Date on the axis, Combined in the values, and removed Product from the legend.
Combined = SUM(Sheet1[Value])
And this is what I get from my data, I get the months, but they are combined of 2017 and 2018. I would like to see January to December 2017 and then January to December 2018:
At the end I created a new meassure that is Year-Month, and then sorted alphabetically. I don't like it, but for now it does the job.
Would this visualization fit your need?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |