Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
I have a column with date of begning and a column with a date of end.
I would like to create a report where I can see depending of the quarter of the years how many row are between those two dates.
For exemple how many rows have a date of begining before the fist quarter of 2021 and a date of end after the first quarter of 2021.
Hence I will be abble to know depending to the different quarter of the year how many row was between those dates.
A row can be count in the first quarter and in the second one, it will depends when the date of end will be.
To do that I start creting column called Q1_2021, Q2_2021...Q4_2021 where I put a 1 if the row has started but not ended during the corresponding quarter of 2021 or a 0 if it wasnt the case.
Hence I have 4 columns with the values 0 or 1, corresponding to the differents quarters.
I would like to have in the lines my quarters and in the columns the amount of row that are still active (the start date before the quarter and the end date after the quarter). But I can't achieve it. I only sucess to put my quarter in the columns and the amount in the lines. Could you help me pls?
Thank you
I would like somethink like this
Solved! Go to Solution.
@Anonymous , Using independent date table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = mainx(allselected(Date1),Date1[Date])
return
calculate(count(Table[case]), filter(Table, Table[Start_date] <= _max && table[EndDate] >=_min))
Also, check
@Anonymous , Using independent date table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = mainx(allselected(Date1),Date1[Date])
return
calculate(count(Table[case]), filter(Table, Table[Start_date] <= _max && table[EndDate] >=_min))
Also, check
Thank you!
User | Count |
---|---|
82 | |
72 | |
67 | |
47 | |
36 |
User | Count |
---|---|
111 | |
56 | |
50 | |
42 | |
40 |