Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hello everybody,
I want to set up a report for occupancy tracking in real estate. Here ist the sample Power BI file: https://we.tl/t-EFqvZbbnlW
There are two data sets in the sample file, one for supply and one for demand.
In the supply sheet the ID is a unique identifier, on the demand side each location can occur several times.
The data sets are connected by two tables, one for geography and one for time. Geography and supply should be connected by an 1:1 relation but I cannot select this.
Please see the reports in the sample file. I can calculate the number of free workstations - using demand and supply datasets - with correct results and also show it in a graph in the third sheet. But as soon as I want to filter the measure "free workstations" by location or department I get wrong values.
Would be great if you have a solution for me
Thanks in advance!
Geography and supply should be connected by an 1:1 relation but I cannot select this.
Your supply table also contains the year. Your data model is correct as it is.
Note the blue i warning.
You could change the measure to
free workstations = max(0,sum(supply[workstations])-sum(demand[pax]))
Thank you very much for your advice!
Now I understand that the tree map only shows positive values.
So what I did now is to create two measures one for missing workspaces and one for free workspaces. I did not use the max function because then the negative values are cut although they are needed in the model.
There was an additional mistake. In the first version of the model the treemap charts did not make use of the geography table.
Obviously you always have to use the help tables for time and geography, otherwise you will receive wrong results.
You find the corrected model here: https://we.tl/t-Tdhqu97j7d
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!