Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All,
I wish to calculate sales for 6 months and this should exclude sales from Jan. This should also be dynamic ie in August we should exclude Jan and Feb.
Heres the formula I've used but its not worked
Year-Mon | 6mth Total Sales (Desired) | 6mth Total Sales (current output) |
23-Jan | $1,265.18 | |
23-Feb | $1,576.41 | $1,576.41 |
23-Mar | $836.15 | $836.15 |
23-Apr | $2,888.95 | $2,888.95 |
23-May | $893.56 | $893.56 |
23-Jun | $2,075.89 | $2,075.89 |
23-Jul | $222.60 | $222.60 |
Solved! Go to Solution.
@mm456 Try this
6 Month Sales =
VAR _result =
SUMX (
KEEPFILTERS (
DATESINPERIOD (
CalendarDate[Date],
TODAY (),
-6,
MONTH
)
),
[Total Sales]
)
RETURN
_result
@mm456 Try this
6 Month Sales =
VAR _result =
SUMX (
KEEPFILTERS (
DATESINPERIOD (
CalendarDate[Date],
TODAY (),
-6,
MONTH
)
),
[Total Sales]
)
RETURN
_result
hI @mm456 ,
Try the following formula:-
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
13 | |
11 | |
10 | |
10 |