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.
Hi,
I am working with 1 table in Power Query/Power BI. This table contains 4 columns, 2 of which are a date column (last day of each month) and a unique ID column. There are between 125,000 and 150,000 rows per month. This table is going to be used to summarize the current months data and I need to get a count/list of items that appeared in the prior month but do not appear in the current month. I'm able to do this in Power Query in Excel but I have 1 file for each month (essentially 2 tables). Importing separate tables for each month is not really feasable.
How can I use the 1 table to find items where there is no match in the current month compared to the prior month?
Always appreciative of any assistance.
Thank you
Solved! Go to Solution.
Hi @dadelta ,
This table needs to contain data for this month and last month.
For example:
Then you could create a new table like below:
Table 2 =
var this_month = CALCULATETABLE(VALUES('Table'[id]),FILTER('Table',MONTH('Table'[month end]) = MONTH(MAX('Table'[month end]))))
var last_month = CALCULATETABLE(VALUES('Table'[id]),FILTER('Table',MONTH('Table'[month end]) = MONTH(MAX('Table'[month end]))-1))
return
EXCEPT(last_month,this_month)
Best Regards,
Jay
Hi @dadelta ,
This table needs to contain data for this month and last month.
For example:
Then you could create a new table like below:
Table 2 =
var this_month = CALCULATETABLE(VALUES('Table'[id]),FILTER('Table',MONTH('Table'[month end]) = MONTH(MAX('Table'[month end]))))
var last_month = CALCULATETABLE(VALUES('Table'[id]),FILTER('Table',MONTH('Table'[month end]) = MONTH(MAX('Table'[month end]))-1))
return
EXCEPT(last_month,this_month)
Best Regards,
Jay
Hi,
In the Query Editor, you will first have to append both tables into a single table. Once that is done, we can write DAX formulas to get your desired result. Share the link from where i can download your PBI file with both/all tables appended into a single table.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |