We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
I have an invoice table which have invoicedate column indicating the invoice date for each invoice. I have to calculate the distinct count of months in each year, and each year have different distinct months. For this current year upto this date of third month it should calulate 3 for year 2022. I have to keep the logic dynamic like after two next months of invoices, my dax expression should calculate 5.
Can anyone design the dax expression for this?
Thank You
Hi,
I recommend utilizing TODAY like this to achiece this:
Proud to be a Super User!
@ScottWalter , you should use the date table with moth year, year, joined with the invoice. Then you can create measure like
calculate(distinctcount('Date'[month Year]), filter(Invoice, not(isblank([invoice Date]))))
User | Count |
---|---|
14 | |
12 | |
7 | |
7 | |
6 |
User | Count |
---|---|
28 | |
20 | |
14 | |
11 | |
5 |