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 folks,
I would like to display on a "line and clustered chart" the number of tickets opened and closed per year week.
First I have my data table that looks like this :
To do that, I followed the answer given in this topic LINK
I created a calendar table and I linked it to the "creation date" :
To finish, I created two columns in the table to put a 0 or 1 if closed or opened :
Hi @Anonymous ,
this happens because you connect to [Created date]. You need to add a new relationship between your two tables, between Calendar[Date] and Data[Closed date]. This second relationship will be inactive. In order to make use of it, you have to use the USERELATIONSHIP-function inside a measure, something like this
measureClosed = CALCULATE ( SUM ( Data[Closed] ); USERELATIONSHIP ( Data[Date Closure]; Calendar[Date] ) )
As for your cumulative count, it will depend a little on you Calendar-table, but in general it should look something like this
cumulative open = CALCULATE ( SUM ( data[open] ); FILTER ( ALL ( Calendar ); Calendar[Week] <= MIN ( Calendar[Week] ) && Calendar[Year] = MIN ( Calendar[Year] ) ) )
Cheers,
Sturla
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 |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
19 |