Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I've been building a report for my company. It's a revenue statement by week.
It contains three colums: Budget revenue, last years revenue and this years revenue.
The visualization i use is a matrix. The weeks are selected as "Rows" and the three colums above as value.
I have a slicer with a weeknumber which has not a relationship with the matrix because i want to see all the weeks of the year. This is because i can check the upcoming weeks for my budget and last years revenue. But i want to create a measure for my current revenue that is affected by the weeknumber slicer because when I select week 20, i will only see the current revenue till week 20, although there are record for week 21 and further.
Is there any possibility to make a measure like above?
Thanks in advance.
Solved! Go to Solution.
@Anonymous , As week is coming from the independent table
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Week])
return
calculate( sum(Table[Revenue]), filter('Date', 'Date'[Week] <=_max))
@Anonymous , As week is coming from the independent table
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Week])
return
calculate( sum(Table[Revenue]), filter('Date', 'Date'[Week] <=_max))
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |