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! Learn more
Hi all,
I have created a table like this
Sales table
I created a date slicer
And I want to create a card that would show the average based on the selected period
So,
When I select Jan, Feb, and March in the slicer
Sales Jan = 100 + 200 + 500 = 800
Sales Feb = 150 + 200 + 400 = 750
Sales March = 300 + 160 + 450 = 910
I want the card showing the average sales for 3 months = (800+750+910)/3 = 820
When I select Jan, Feb, and March in the slicer
Sales Jan = 100 + 200 + 500 = 800
Sales Feb = 150 + 200 + 400 = 750
Sales March = 300 + 160 + 450 = 910
Sales April= 220+ 210 + 500 = 930
I want the card showing the average sales for 4 months = (800+750+910+930)/4 = 847,5
Please help me to solve this problem
Thank you..
Solved! Go to Solution.
hi, @Mars3442
Try below code
adjust your table name
hi, @Mars3442
Try below code
adjust your table name
Hi, @Mars3442
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly. Appreciate your kudos
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 9 | |
| 8 |