Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
i need the dax formula for week on week
for eg
count of order Id with 10/9/2017- count of order with 3/9/2017)/count Of order in 3/9/2017
For eg
count of order at 3/9/2017= 32 count of order in 10/9/2017 =52
((52-32)/32)*100=62.50%
Solved! Go to Solution.
You can create a measure like below:
7 days ago value = CALCULATE(SUM(Table5[Value]),FILTER(ALL(Table5),Table5[Date]=MAX(Table5[Date])-7))
Regards,
In this scenario, you must have a Year column and a Week Number column in your table. To compare the current week and previous week. You can create a measure like below:
= VAR CurrentWeekCountID = CALCULATE ( COUNTA ( Table[ID] ), ALLEXCEPT ( Table, Table[Year], Table[WeekNumber] ) ) VAR PreviousWeekCountID = CALCULATE ( COUNTA ( Table[ID] ), FILTER ( ALL ( Table ), Table[Year] = MAX ( Table[Year] ) && Table[WeekNumber] = MAX ( Table[WeekNumber] ) - 1 ), ALLEXCEPT ( Table, Table[Year], Table[WeekNumber] ) ) RETURN ( CurrentWeekCountID - PreviousWeekCountID ) / PreviousWeekCountID
If you still have any question, please share some sample data.
Regards,
should i make week based on year or day???
You can create a measure like below:
7 days ago value = CALCULATE(SUM(Table5[Value]),FILTER(ALL(Table5),Table5[Date]=MAX(Table5[Date])-7))
Regards,
@v-sihou-msft is there any way i can contact you...Requesting ur help in many other queries....just joined as BI developer..would appreciate ur help
please mention count of order ID in dax formula
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
97 | |
75 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |