Forum Discussion
Measures in another table?
Hi everyone, still struggling with this measure - hoping someone can help. I'm new to using PowerBI and am starting by building a (what I thought would be) simple dashboard.
I have 4 measures which are counts of non-blank rows in the respective columns over the total rows, e.g.
1-(COUNTBLANK(Planning[Actual_ManagementResponses])/[Total])
I want to display on a bar chart against team (another column in the same query) but the default behaviour is to cluster, which pushes all the bars together when only one team is selected.
In Excel, I can just have a column with 4 numbers and the chart treats it as the same measure (measure names are essentially treated as categories) - do I need to create a calculated table with the measures in each row?
Hope that all makes sense and someone can help. Many thanks for reading.
6 Replies
- AnonymousNot applicable
Anonymous,
I am not clear about your expected result. Could you please share dummy data of your table and post expected result here?
Regards,
Lydia- AnonymousNot applicable
Hi Lydia,
Yep sure - sorry still getting to grips with the site. So I have:
Group | Planned Report date | Actual Report date
1 | 1/1/2018 |
1 | 3/3/2018 | 2/3/2018
2 | 1/1/2018 |
2 | 10/3/2018 | 2/2/2018
1 | 1/1/2018 | 2/3/2018
1 | 1/1/2018 | 2/3/2018
And I want:
Group | Report on time %
1 | 33%
2 | 100%
I have 2 more sets of planned and actual columns in the real data for draft report and closing meeting.
I can return the results I want, just wondered if there's a way to do it so it doesn't treat them as 4 measures and cluster?
- AnonymousNot applicable
Anonymous,
What logic do you use to calculate the expected result? Using your original DAX, I am unable to get the above pecentage values for Draft%. You don't have blank rows for group 1 and 2 in Draft date.1-(COUNTBLANK(Planning[Actual_ManagementResponses])/[Total])
In addition, what does the chart look like in Excel?
Regards,
Lyida