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,
Using these two functions I did calcolated running totals daily and monthly and filter for weekly but when plot them in a line chart, the month turns into days when choosing days for X axis, How can i plot them in a line chart and lines remain monthly and daily each:
RolleUp Month =
VAR Period =
DATESINPERIOD(
'Date'[Date],
MAX('Date'[Date]),
-12,
MONTH
)
VAR totalSales =
CALCULATE(
[Total Sales],
Period
)
RETURN
totalSales
RolleUp Day =
VAR Period =
DATESINPERIOD(
'Date'[Date],
MAX('Date'[Date]),
-365,
DAY
)
VAR TotalSales =
CALCULATE(
[Total Sales],
Period
)
RETURN
TotalSales
Solved! Go to Solution.
Hi @alan19 , could you try this measure see if it fits on your requirements.
RolledUp Month =
VAR Period =
DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -12, MONTH)
VAR TotalSales =
CALCULATE([Total Sales], Period)
RETURN
TotalSales
RolledUp Day =
VAR Period =
DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -365, DAY)
VAR TotalSales =
CALCULATE([Total Sales], Period)
RETURN
TotalSales
Hi @alan19 , could you try this measure see if it fits on your requirements.
RolledUp Month =
VAR Period =
DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -12, MONTH)
VAR TotalSales =
CALCULATE([Total Sales], Period)
RETURN
TotalSales
RolledUp Day =
VAR Period =
DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -365, DAY)
VAR TotalSales =
CALCULATE([Total Sales], Period)
RETURN
TotalSales
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |