Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi friends!
There is a fact table with the result of product sales by date. It is necessary to get the average value
between the three periods is selected in the slicers.
I will be glad of any help!
https://drive.google.com/open?id=1HShO0E5ueQcIy-MMqxdlmi4DHOcFkz0_
Solved! Go to Solution.
Using this model:
And a Measure Like This:
Measure =
VAR TotalTA =
CALCULATE (
SUM ( '1'[sales] );
TREATAS ( VALUES ( 'Dates1'[Date] ); '1'[date] );
ALL ( '1' )
)
VAR TotalTB =
CALCULATE (
SUM ( '1'[sales] );
TREATAS ( VALUES ( 'Dates2'[Date] ); '1'[date] );
ALL ( '1' )
)
VAR TotalTC =
CALCULATE (
SUM ( '1'[sales] );
TREATAS ( VALUES ( 'Dates3'[Date] ); '1'[date] );
ALL ( '1' )
)
RETURN
DIVIDE ( TotalTA + TotalTB + TotalTC; 3 )
Regards
Victor
The only that imagine is duplicate your Fact Table many times of slicers you want.
Using this model:
And a Measure Like This:
Measure =
VAR TotalTA =
CALCULATE (
SUM ( '1'[sales] );
TREATAS ( VALUES ( 'Dates1'[Date] ); '1'[date] );
ALL ( '1' )
)
VAR TotalTB =
CALCULATE (
SUM ( '1'[sales] );
TREATAS ( VALUES ( 'Dates2'[Date] ); '1'[date] );
ALL ( '1' )
)
VAR TotalTC =
CALCULATE (
SUM ( '1'[sales] );
TREATAS ( VALUES ( 'Dates3'[Date] ); '1'[date] );
ALL ( '1' )
)
RETURN
DIVIDE ( TotalTA + TotalTB + TotalTC; 3 )
Regards
Victor
super! Thank you! Now I'm one step closer to the solution!
Only I need an average for each product, I'll try to find a solution)
really? no solution to find the average for each product?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 46 | |
| 42 | |
| 26 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |