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 , is there a function that shows the sales u to date . For example , if my sales start at 1/1/2018 and
I select February 2013 I want to see the sales from 1/1/2018 till 28/2/2013.
Solved! Go to Solution.
Hi @vaso
@Fowmy Good share!
For your question, here is the method I provided:
Here's some dummy data
"Table"
Create a measure. You can calculate the total number based on the selection of slicers.
Total values =
var select_date =
IF(
ISFILTERED('Table'[Date]),
VALUES('Table'[Date]),
BLANK()
)
RETURN
CALCULATE(
SUM('Table'[values]),
FILTER(
ALL('Table'),
'Table'[Date] <= select_date
)
)
Here is the result
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @vaso
@Fowmy Good share!
For your question, here is the method I provided:
Here's some dummy data
"Table"
Create a measure. You can calculate the total number based on the selection of slicers.
Total values =
var select_date =
IF(
ISFILTERED('Table'[Date]),
VALUES('Table'[Date]),
BLANK()
)
RETURN
CALCULATE(
SUM('Table'[values]),
FILTER(
ALL('Table'),
'Table'[Date] <= select_date
)
)
Here is the result
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@vaso
Try this pattern:
Sales To Date = CALCULATE( [Sales Amount] , DATESYTD( 'Date'[Date] ) )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 6 | |
| 6 |