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
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]
)
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.