Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello Experts ,
how to find (current year + last year )/2
I have a dax for last year(please find below dax) but i want to do (current year + last year )/2.How to find current year and last year .please advise me or share me dax .
Hi @Anonymous
Hi. First of all you need to be sure you have a Calendar table to manage Time Intelligence. Create two measures:
Then you can find this year :
CALCULATE( COUNT ( Table[column] ) )
Calculation for last year:
CALCULATE( COUNT ( Table[column] ) , SAMEPERIODLASTYEAR (CalentarTable[DateColumn]) )
Then you can create a third measure and use DIVIDE function to do the last part.
You can find how to create a Calendar Table here
Hope this helps,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Happy to help!
User | Count |
---|---|
120 | |
72 | |
69 | |
57 | |
50 |
User | Count |
---|---|
167 | |
82 | |
68 | |
65 | |
53 |