Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a Dispatch planner table which has the following columns:
I want create 2 measures as below:
1) Measure-1: Get the OpeningStock based on the first day of the month as a list:
2) Measure-2: Get the ClosingStock based on the last day of the month as a list:
I tried using the Calculate measure and filters but I'm not getting it in the list format.
Thank you in advance.
Solved! Go to Solution.
Hi @sonshine14916 ,
The Table1 ‘s data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a table named ‘First day of the month’
First day of the month = FILTER('Table1','Table1'[Date].[Day] = 1)
2. Use the following DAX expression to create a table named ‘Last day of the mont'
Last day of the month = FILTER(ADDCOLUMNS( VALUES(Table1),"Last day",EOMONTH('Table1'[Date],0)),[Date] = [Last day])
3. Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sonshine14916 ,
The Table1 ‘s data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a table named ‘First day of the month’
First day of the month = FILTER('Table1','Table1'[Date].[Day] = 1)
2. Use the following DAX expression to create a table named ‘Last day of the mont'
Last day of the month = FILTER(ADDCOLUMNS( VALUES(Table1),"Last day",EOMONTH('Table1'[Date],0)),[Date] = [Last day])
3. Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Wenbin Zhou,
thank you very much for the solution. It works.
Kind regards,
GK
Seems a bit redundant unless you have scenarios where the closing stock of the prior month doesn't match the opening stock of the new month?
Which measures have you tried?
Hi @Ibendlin , you are correct, this may be redundant but I plan to use it for other purposes. Thanks for the feedback.
Best regards,
GK
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
11 | |
8 | |
8 | |
8 |
User | Count |
---|---|
22 | |
13 | |
11 | |
10 | |
10 |