Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
Appreciaet your help as I am trying to have one DAX measures which will calculate average or sum based on another column value. for headcount i need average for last two months and for sales and profit i need sum for last two months.
how can i have measure which will give em the values given in the Expected results columns.
Thanks in advance,
Solved! Go to Solution.
Hi,
I am not sure if I understood correctly your question, but please check the below picture and the attached pbix file.
Hi,
I am not sure if I understood correctly your question, but please check the below picture and the attached pbix file.
Hi @Jihwan_Kim Thanks this really helped where I have dates filter on the visual and I will accept as a solution.
What if (in another scenraio) I want to ignore the dates/date table reference in the Expected result measure and rather want to have an average values where metric is headcount and I want sum of Values where metric on the row is Sales and Profit? I want to get the values in the expected result column by using VAR in DAX. Please help, example is given below.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 12 | |
| 10 |