Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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]
)
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
103 | |
98 | |
98 | |
38 | |
37 |
User | Count |
---|---|
154 | |
120 | |
73 | |
73 | |
63 |