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.
Hi,
Essentially I'm trying to filter the table to exclude data for a specific id, but still want to see that one of the rows has no data for the leftover id.
For that to make sense, let me illustrate:
This is the data:
This is the table:
As you can see there's no row with name "Test", which makes sense because there's no data for that for the remaining data after filtering.
Ideally, it would be great to still have "Test" next to "Hello" and "World" but to show either 0, or Null, or something along those lines.
I've attempted to create a new table:
This one just has a list of all the possible "name"'s.
And what I did with this is created a relationship:
And in my Power BI table, instead of using "name" from table vals I replace it with "name" from table types.
But, frustratingly, it is still showing the same result as previously! 😐
I feel like this is a very simple problem, but for some reason cannot get my head around it!
Solved! Go to Solution.
Hi @Anonymous,
You could create the calculated table with the formula below.
table = VALUES(Table2[name])
Then create the relationship and create the measure.
Measure = var a= CALCULATE(SUM('Table2'[value]),FILTER('Table2','Table2'[some_id]=SELECTEDVALUE(Table2[some_id]))) return IF(ISBLANK(a),0,a)
Here is your desired output.
More details, you could refer to the attachment.
Best Regards,
Cherry
Hi @Anonymous,
You could create the calculated table with the formula below.
table = VALUES(Table2[name])
Then create the relationship and create the measure.
Measure = var a= CALCULATE(SUM('Table2'[value]),FILTER('Table2','Table2'[some_id]=SELECTEDVALUE(Table2[some_id]))) return IF(ISBLANK(a),0,a)
Here is your desired output.
More details, you could refer to the attachment.
Best Regards,
Cherry
Did you click the drop down on "name" in the Values area and select "Show items with no data"?
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |