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
I have two metrics:
① Number of new sales
② Total number of sales
① The number of new sales is the number of purchases made on the date selected in the slicer.
② The total number of sales is the number of purchases made up until the date selected in the slicer.
For example, based on the data in the table below, if I select 02/2024 in the slicer, ① would be 100 and ② would be 150.
| month | sales figures |
| 1/2024 | 50 |
| 2/2024 | 100 |
| 3/2024 | 14 |
| 4/2024 | 54 |
Additionally, the structure of the calendar master set in the slicer is as follows, and I would like to be able to select by business year, business month, and business day.
| date | business year | business month | business day |
| 1/1/2024 | 2024 | 1 | 1 |
| 1/2/2024 | 2024 | 1 | 2 |
| 1/3/2024 | 2024 | 1 | 3 |
1/4/2024 | 2024 | 1 | 4 |
How can I achieve this?
Solved! Go to Solution.
hello @yoshi_matsu
please check if this accomodate your need.
create a new measure with following DAX.
Cumulative =
var _Date = SELECTEDVALUE('Calendar'[date])
Return
SUMX(
FILTER(
ALL('Sales'),
'Sales'[month]<=_Date
),
'Sales'[sales figures]
)
Thank you so much!
hello @yoshi_matsu
please check if this accomodate your need.
create a new measure with following DAX.
Cumulative =
var _Date = SELECTEDVALUE('Calendar'[date])
Return
SUMX(
FILTER(
ALL('Sales'),
'Sales'[month]<=_Date
),
'Sales'[sales figures]
)
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 |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |