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 All -
If I have a list of data that looks like this...
issue1 opendate1 closeddate1
issue2 opendate2 closeddate2
issue3 opendate3 closeddate3
...
[And some entries where there is no closeddate, because the issue is still open...]
What is the easiest/best way for me to produce a chart that shows the number of open issues per month? For example,
NumberOfOpen x y z ...
Month Jan Feb Mar ...
Any/all insights greatly appreciated. Thanks!
Tom
Solved! Go to Solution.
Hi,
I assume you have a table like below.
Firstly Add a new column called "Month" from "openDate" which shows the month of "openDate" in Query Editor.
In this table, If you want to calculate the issues that have blank closeDate for everymonth, you can use measure below.
NumOfIssues = CALCULATE(COUNTAX(issueTable, issueTable[issue]), Filter(issueTable, issueTable[closeDate] = BLANK()))
But If you also want to calculate the issues whose closeDate is after the current month of openDate, for example, issue2,
It is closed in February, not in January, you can use measure below:
NumOfIssues = CALCULATE(COUNTAX(issueTable, issueTable[issue]), Filter(issueTable, issueTable[closeDate] = BLANK() || And(issueTable[closeDate] <> BLANK(), FORMAT(issueTable[closeDate], "yyyymm") > FORMAT(issueTable[openDate], "yyyymm"))))
Best Regards
Alex
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |