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 all,
I'm working on a Power BI mapping visual that shows our project locations across the country, with a slicer for their added date. I have a request to add in all our ordered, but not started, projects, and display them regardless of their start date. Right now the table I'm using has a column for project addresses and a second for the project status, with the ordered-but-not-started projects identified as "Open" and the rest marked as "Activated."
My guess is that I may need to add in the open projects as a custom base layer from ArcGIS, but we don't currently have an ArcGIS account. Is there another way I can get this to work?
TIA!
Solved! Go to Solution.
I was actually able to solve this myself after a lot of digging. Here's the query I used, I hope it's helpful for others. I then applied this measure to "Filters on this visual" and indicated to include those where the value is greater than 0. Attaching a screenshot of the visual result too.
include_open_projects =
VAR mindt = MINX(ALLSELECTED('DATE'[Date]), 'DATE'[Date])
VAR maxdt = MAXX(ALLSELECTED('DATE'[Date]), 'DATE'[Date])
RETURN
CALCULATE(
COUNTROWS(
FILTER(address_table,
(address_table[lead_project_added_dt] >= mindt &&
address_table[lead_project_added_dt] <= maxdt)
||
ISBLANK(address_table[lead_project_added_dt]))),
REMOVEFILTERS('DATE'))
I was actually able to solve this myself after a lot of digging. Here's the query I used, I hope it's helpful for others. I then applied this measure to "Filters on this visual" and indicated to include those where the value is greater than 0. Attaching a screenshot of the visual result too.
include_open_projects =
VAR mindt = MINX(ALLSELECTED('DATE'[Date]), 'DATE'[Date])
VAR maxdt = MAXX(ALLSELECTED('DATE'[Date]), 'DATE'[Date])
RETURN
CALCULATE(
COUNTROWS(
FILTER(address_table,
(address_table[lead_project_added_dt] >= mindt &&
address_table[lead_project_added_dt] <= maxdt)
||
ISBLANK(address_table[lead_project_added_dt]))),
REMOVEFILTERS('DATE'))
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 |
|---|---|
| 55 | |
| 34 | |
| 32 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 71 | |
| 38 | |
| 35 | |
| 25 |