Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I'm trying to plot various types of time intelligence metrics on the same chart. I have a single table, that is a SharePoint list, that has four date fields. I also have a Calendar/Date table and I have created relationships to these four date fields. Created Date is primary/active and the rest are inactive.
I'd like to be able to plot Created (count of created) and Closed (count of closed) in a stackbar chart or even a line chart of counts of labels by Created and Closed. I know I need to use the USERELATIONSHIP function so I can activate Created or Closed in a Measure to count/plot relative to the Calendar/Date Table. But I'm not sure the best way to do it.
| ID | Label | Identified | Created | Decision | Closed |
| 1 | Shoes | 3/1/2024 | 3/1/2024 | 3/31/2024 | 3/31/2024 |
| 2 | Guitars | 3/2/2024 | 3/2/2024 | 3/31/2024 | 3/31/2024 |
| 3 | Shoes | 4/2/2024 | 4/2/2024 | 4/5/2024 | 4/5/2024 |
| 4 | Balloons | 4/22/2024 | 4/22/2024 | 4/23/2024 | 4/23/2024 |
| 5 | Cheese | 4/5/2024 | 4/22/2024 | 4/23/2024 | 4/23/2024 |
Solved! Go to Solution.
If it answers your query please mark my post as a solution
If it answers your query please mark my post as a solution
Is there a way to ensure that it's only pulling back fields with an actual closed date populated? My source is a SharePoint list and empty closed dates are populated with 'null' in PowerQuery. I tried adding a filter [Closed_Date] <> "" and also [Closed_Date] <> null, and other variations but it fails.
It is a weird behavior. You can try different ways to filter out data
if this does not work:
Table.SelectRows(#"Removed Columns", each [Closed] <> null and [Closed] <> "")
try filter data after a certain date:
Table.SelectRows(#"Filtered Rows", each [Closed] > #date(2020, 1, 1))
or maybe you can duplicate the column and transform the datatype to whole number and filter out the nulls or values above a certain amount.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 69 | |
| 39 | |
| 35 | |
| 23 |