Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
I want to create a table with some columns and the important thing is to be filtered by previous month. I started the idea but not sure if the correct way :
Solved! Go to Solution.
Hi @Ashish_Mathur ,
Finally I solved it with 3 steps:
1- New Column in Main table:
2- Creation of calculated table with clients in last month:
Thanks !
Hi,
Create a Calendar Table and build a relationship (Many to One and Single) from the Document Date column of the CCMS Billings append table to the Date column of the Calendar Table. Write calculated column formulas in the Calendar Table to extract Year, Month Name and Month number. Sort the Month name by the Month number. Create 2 slicers - for Year and Month name. Select 2022 and May. Create a Table visual and drag Master Client Number and Master Client Name there. Write this measure and drag it to the visual
Measure 1 = countrows(filter(values('CCMS Billings append'[Master Client Number]),datesbetween(Calendar[Date],edate(min(calendar[date]),-1),min(calendar[date])-1)))
If Measure 1 does not work, then try this one
Measure 2 = countrows(calculatetable(values('CCMS Billings append'[Master Client Number]),datesbetween(Calendar[Date],edate(min(calendar[date]),-1),min(calendar[date])-1)))
Hope this helps.
Hi @Ashish_Mathur ,
Just need to create this table with that information and then I'll use lookupvalue.
I only need the expression to create the table with those 2 arguments : Summarize clients from last month.
An idea would be for current month we can use MAX and from that point It can be use MONTH -1 to get to the previous month.
Hi,
i do not write tables formulas except when i am creating a Calendar Table. I prefer only measures. Does my solution not work for you?
Hi @Ashish_Mathur ,
Finally I solved it with 3 steps:
1- New Column in Main table:
2- Creation of calculated table with clients in last month:
Thanks !
Hi @Ashish_Mathur ,
I already have calendar table (Dates) but neither of the measures worked.
What I'm doing now is creating a column with the following formula:
Then with this I can create a sumarize table with 2 columns: Client and this column filtered with "LAST". And then I can use Lookupvalue in the main table to identify those clients.
Will let you know if doesn't work neither but It should.
Thanks.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.