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! I am new to DAX and Power BI.
Please, would you please tell me how it should be done?
I am stuck with a problem.
I have a measure which should calculate sales forecast based on already given days in a month and total number of days. Sth like this
Forecast = Sales / Days_of_sales * number_of_days_in_the_month
So I have the following measures and formulas:
Thanks in advance
Solved! Go to Solution.
You can add a varible _Result = SUMX(VALUES('Table'[Month]), Forecast) and return it to see whether it works.
You can add a varible _Result = SUMX(VALUES('Table'[Month]), Forecast) and return it to see whether it works.
Hey, BI-Leo!
This worked just fine, thanks a lot!
Could you give advice on what to read to better understand how to manipulate totals?
Hi @timur-1993 , this is due to Content Transition in the DAX, and the total won't simply add all the cell together.
For your scenario, the total calculates the result amonng whole sum sales in Nov and Dec then divide whole days in Nov and Dec.
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 |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |