Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I'm fairly familiar with PowerBI but not so much in transforming data with PowerBI outside of what I am given.
I get daily sales from an SQL server (third party platform sends information to me) and I am trying to sum all of the daily sales per month. I'd also like to view last year's sales and this year's sales on a bar graph if that is possible.
I've been digging through multiple forums in this community and set up my information like so:
However, I can't seem to figure out how to sort by month AND year and I get this:
As you can see, I got it to sort only by the month.
The goal is to show 2019 and 2020 information side by side if possible and in order!
Please let me know if you need additional information from me.
Thanks for the help!
Solved! Go to Solution.
Hi @Anonymous
In fact, format function will transform values to text type and change the display format as you defined in optional parameters.
I'd like to suggest you take a look at the table field properties with custom display format.
Regards,
Xiaoxin Sheng
@Anonymous ,
If you create a month like this or make this sort column you should get year togther
Month Year = format([date],"MMYYYY")
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
When I create "Month Year = format([date],"MMYYYY")", is this under transform data or as a new measure?
If it is the former, would it be a custom column?
Thanks
Hi @Anonymous
In fact, format function will transform values to text type and change the display format as you defined in optional parameters.
I'd like to suggest you take a look at the table field properties with custom display format.
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |