Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 |
---|---|
54 | |
22 | |
19 | |
16 | |
11 |
User | Count |
---|---|
81 | |
55 | |
40 | |
19 | |
12 |