March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a requirment to average by 2 Categories i.e. By Date (Year/Quarter/Month) and by Market. How could I get in DAX average by tow categories?.
Using Quick Measure I get this , how to add another category - By Date (Year/Quarter/Month)?
Solved! Go to Solution.
Hi @Anonymous ,
You could try ALLEXCEPT() function.
Measure = CALCULATE(AVERAGE('Table'[value]),ALLEXCEPT('Table','Table'[date],'Table'[categories])
Best Regards,
jay
@Anonymous , Not very clear
Try like
AVERAGEX(Summarize('Office','Office'[Market],'Office'[Market], "_1",CALCULATE(SUM([Column1]))), [_1])
Thanks for the reply, but in the DAX I need to summarize by 2 categories ,
1. By Date
2. By Market
I used below Dax. but in my visualtion I add this new measure along with the Date or Office get Error
Hi @Anonymous ,
You could try ALLEXCEPT() function.
Measure = CALCULATE(AVERAGE('Table'[value]),ALLEXCEPT('Table','Table'[date],'Table'[categories])
Best Regards,
jay
User | Count |
---|---|
118 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |