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.
Dear Experts,
I have a data table like below.
Month | Customer Name | Total Fleet |
1/31/2023 | John | 5 |
1/31/2023 | Sue | 7 |
1/31/2023 | Dave | 3 |
2/28/2023 | John | 4 |
2/28/2023 | Sue | 5 |
2/28/2023 | Dave | 7 |
2/28/2023 | Moe | 2 |
At the Jan 2023, we have rented total 15 fleets to individual customer.
At the Feb 2023, some customers returned some fleets and some rented more fleets.
I would like to create a chart based on month but not overall increased/decreased.
I would like to based on customer name as below.
Month | Customre Name | Total Fleet | Increased/Decreased |
1/31/2023 | John | 5 | |
1/31/2023 | Sue | 7 | |
1/31/2023 | Dave | 3 | |
2/28/2023 | John | 4 | -1 |
2/28/2023 | Sue | 5 | -2 |
2/28/2023 | Dave | 7 | +4 |
2/28/2023 | Moe | 2 | +2 |
if I select Feb 2023 in slicer, I would like to show Total increased = 6 and Total decreased = -3.
Thanks a lot for your help.
Regards,
KMT
@KyawMyoTun , If you need a column
new column =
var _date = [month]
var _value = sumx(filter(Table, [Customer Name] = earlier( [Customer Name]) && eomonth(_date , -1) = eomonth([Date],0) ), [Total])
return
[Total] - _value
Or create a date table join with dates and use Time intelligence and create measures
example measures
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))
Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s
Dear @amitchandak ,
Thanks a lot for your reply.
When I try with calculate column, I didn't get the expected result as below.
I have some measures with Time intelligence but those can only get total monthly increase not by customer name (e.g Total increase as 3) but I want to get total increase = 6 and total decrease = -3.
Here is the measure :
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 | |
77 | |
63 | |
51 | |
47 |
User | Count |
---|---|
212 | |
82 | |
61 | |
60 | |
57 |