Use this date table instead.. way better and learn to love the (Currentday), (CurrentMonth), (CurrentYear) columns.
So if you want last months total.. you would just calculate
sum(XXX),filter(dim_date,dim_date[CurrentMonth = -1]))
which means that only records from last month are taken into account when doing the total
------------------------------
Beau A
Analyst
MI
------------------------------
Original Message:
Sent: Jan 12, 2022 11:56 PM
From: Anubhav Mahule
Subject: (PBI-Data atchd) Unable to COUNT for Prev month Orders in a card
Thats superb.. Works like charm.. Thanks a lot @Sam Casey Bolade
Your presence in the forum will add value for sure
------------------------------
Anubhav Mahule
Lead consultant
Original Message:
Sent: Jan 09, 2022 05:28 AM
From: GSC Bolade
Subject: (PBI-Data atchd) Unable to COUNT for Prev month Orders in a card
Hi Anubhav,
I just joined this platform about an hour ago and saw your query.
I have worked out the measure to calculate prev month, total count and distinct count.
Few changes were made to the date table as I added new columns for Year and Mnth Year to enable better filter.
Please do let me know if you have further queries on this and please visit my website at https://powahour.com/. Linkedin https://www.linkedin.com/in/sam-bolade-68718818b/
------------------------------
G Bolade
RG2 0FZ
Original Message:
Sent: Jan 08, 2022 01:34 AM
From: Anubhav Mahule
Subject: (PBI-Data atchd) Unable to COUNT for Prev month Orders in a card
Hi Guys,
I am stuck at this point.. Attchin pbi and data on xls
Issue: 1
Calculate PREV month total orders from Dealers in CARD
Order will be counted when its yes in order colm
Issue: 2
Calculate PREV month total DISTINCT orders from Dealers in CARD
Order will be counted when its yes in order colm
Issue:3
Calculate Growth in orders than prev month in table form
Thanks in advance
------------------------------
Anubhav Mahule
Lead consultant
------------------------------