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.
I have a large fact table with three important columns:
A unique identifier columns (Item Number)
An Open Date Column
A Closed Date Column.
I want to create a simple bar chart that counts BY Day for 365 days of the year what activity is happening. There are three bars I would like to plot on the Day X Axis.... Opened, Closed, or Pending.
Easy to plot open and closed since I can see the dates below and that activity happend on a specific day, question is how do I create another status "pending" for those ietms that have yet to close? AND have it show up each day on the x axis until it closed.
For example looking at the table example below this is what I would expect to see each day of the year...
1/1/2022 I have ZERO activity (So no bars)
1/2/2022 I had one open order (Item 4990)
1/3/2022 I have one pending...(Item 4990) *Item has not closed yet**
1/4/2022 I have one pending...(Item 4990)
1/5/2022 I have one pending...(Item 4990)
1/6/2022 I have one pending...(Item 4990)
...
1/27/2022 I have one closed...(Item 4990)
...
4/3/2022 I have one open...(Item 3573)
etc...
...This would go on for each day of the year
Below is a quick view of a sample table, as you can see below some items have opened and closed and some have opened and not closed... These that are not closed are "pending"
Visually this is something I am looking for, and you can see below I only show 1-10 days of the year, but this would go on till end of year. Dark blue would be the closed order counts that day, Light blue would be the number of open orders that day, and orange line (Or Bar) would show the number of pending still during all other days of the year, until those items are closed. Note visual below is a sample view and not built off the sample dataset above...
Hi,
I hope you have calendar table called Calendar and a column Date in that which is used for the x-axis of your Line clustered column chart. There is no relationship of this with your data table.
I created the data table named as Data1.Replace Data1 by your table name.
Create the following measures
1.
Hi,
I have used only the first 4 rows of data to create the visual. Add more data. You may download my PBI file from here.
Hope this helps.
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 |
---|---|
114 | |
104 | |
77 | |
67 | |
63 |
User | Count |
---|---|
144 | |
107 | |
105 | |
82 | |
69 |