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.
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))
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 |
---|---|
97 | |
95 | |
76 | |
72 | |
65 |
User | Count |
---|---|
140 | |
109 | |
103 | |
82 | |
73 |