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.
Hi, community,
I have a table, such as:
Project Id | Cycle Id | Cycle Start | Cycle Finish |
1 | 1 | 1/02/2021 | 5/03/2021 |
2 | 1 | 1/02/2021 | 5/03/2021 |
3 | 2 | 8/03/2021 | 11/03/2021 |
4 | 2 | 8/03/2021 | 11/03/2021 |
5 | 2 | 8/03/2021 | 11/03/2021 |
In the report, I want to filter out all projects which are not in the current cycle.
Thanks
Evan
Solved! Go to Solution.
@amitchandak , I have figured out how to do this.
To explain a little more about the task, I have different reports on current project cycle, next project cycle and so on. Thus, I needed to filter out the content by cycle timeframe.
I used Greg Deckler's reply here https://community.powerbi.com/t5/Desktop/Power-Query-If-x-number-is-between-x-and-y-then-quot-Delete... to index all current and future cycles, so that I got 1 for current, 2 for next etc., and applied page filter based on the cycle number.
Thanks
Evan
@EBGAL , Can you explain with examples. The expected output is not clear to me .
Try a measure like this with independent date table
measure =
var _max1 = maxx(allselected('Date'), Date[Date])
var _min1 = minx(allselected('Date'), Date[Date])
return
calculate(count([Project Id]), filter('Table', 'Table'[Cycle Finish] <=_max1 && 'Table'[Cycle Finish] >=_min1 ))
@amitchandak , I have figured out how to do this.
To explain a little more about the task, I have different reports on current project cycle, next project cycle and so on. Thus, I needed to filter out the content by cycle timeframe.
I used Greg Deckler's reply here https://community.powerbi.com/t5/Desktop/Power-Query-If-x-number-is-between-x-and-y-then-quot-Delete... to index all current and future cycles, so that I got 1 for current, 2 for next etc., and applied page filter based on the cycle number.
Thanks
Evan
@EBGAL , Thanks for the update. Kudos to you. We all are learning from Greg's blogs and solutions.
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 |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |