Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi!
I am trying to calculate the WOS for my items by store based on the prior week sales.
I have the prior week sales already as a measure and it works. I am running into an issue when i try to multiply by what the current WOS number is.
Any help would be greatly appreciated on what i am doing wrong!
Solved! Go to Solution.
Thanks for the reply from @miTutorials and @SachinNandanwar , please allow me to provide another insight:
Hi, @ebrownretail .
Regarding the issue you raised, my solution is as follows:
You can try using the Format() function to convert the date type to the text type.
1.First I have created the following table and the column names and data are the data you have given:
2. Below are the measure I've created for your needs:
Measure = MAX('Table'[Month])=FORMAT(MAX('Table 2'[Date]),"mmmm")Measure 2 = FORMAT(MAX('Table 2'[Date]),"mmmm")
3.Here's my final result, which I hope meets your requirements.
4.Here is the relevant documentation:
FORMAT function (DAX) - DAX | Microsoft Learn
Of course, if you have any new ideas, you are welcome to contact us.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you for the information. How do i get it to reference today to find out what the month name is?
Thanks for the reply from @miTutorials and @SachinNandanwar , please allow me to provide another insight:
Hi, @ebrownretail .
Regarding the issue you raised, my solution is as follows:
You can try using the Format() function to convert the date type to the text type.
1.First I have created the following table and the column names and data are the data you have given:
2. Below are the measure I've created for your needs:
Measure = MAX('Table'[Month])=FORMAT(MAX('Table 2'[Date]),"mmmm")Measure 2 = FORMAT(MAX('Table 2'[Date]),"mmmm")
3.Here's my final result, which I hope meets your requirements.
4.Here is the relevant documentation:
FORMAT function (DAX) - DAX | Microsoft Learn
Of course, if you have any new ideas, you are welcome to contact us.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Allow me to respond.
I am not to sure if there is any inbuilt function to identify month name.You would have to write a custom measure to indetify the name based on MONTH(TODAY()) which a returns month number..
FILTER(Dates, Dates[Month Name] = TODAY()) is problematic because Dates[Month Name] is a text column representing the month name (e.g., "July"), while TODAY() returns a date. These cannot be directly compared and you will have to change this!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |