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
Hi All,
How can I calculate the year-wise "Sales per Month"?
The below table is the source table.
The Target Table is
Thank you in advance.
Note: "---" means the value is present. just for a brief explanation, I have used the "---" symbol in the target table.
Solved! Go to Solution.
Finally, I got a logic for this requirement.
Step 1:
Month Year = FORMAT(sales(Sales Date),"mmm-yyyy")
Step 2:
Note: This is a new Column only. Not a measure.
@sivasrao refer to this post here - https://community.powerbi.com/t5/Desktop/How-to-Calculate-sales-by-month/m-p/222960#M99077
Thank you. It is working.
Is there any chance to create "sales per month" as a new column? what is the logic for that?
Output like,
Finally, I got a logic for this requirement.
Step 1:
Month Year = FORMAT(sales(Sales Date),"mmm-yyyy")
Step 2:
Note: This is a new Column only. Not a measure.
I used this logic,
User | Count |
---|---|
117 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
170 | |
117 | |
63 | |
56 | |
51 |