Forum Discussion
Summarize, don't summarize problem with measures
Hi,
I have a visual with input of two measures.
dataroles:
{
"displayName": "X-Axis",
"name": "X",
"kind": "Measure",
},
{
"displayName": "Y-Axis",
"name": "Y",
"kind": "Measure"
}
...
"dataViewMappings": [
{
"categorical": {
"values": {
"select": [
{
"bind": {
"to": "X"
}
},
{
"bind": {
"to": "Y"
}
}
]
}
}
power bi always summarizes them and don't summarize is missing
How can I get the dont summarize option?
br
Hi Anonymous,
Explicit measures cannot be used for grouping (creating row context), as without any kind of grouping, they will always result in a single, grouped (scalar) value.
For this situation, you can set the data role to:
- Grouping, in order to allow columns, or
- GroupingOrMeasure, which will allow you to add implicit measures from your data model (which are really columns) and specify that Power BI not summarise them as you are expecting.
(ref)
If you need to use measures in these roles, you will need to add another data role to specifically create row context so that they do not summarise at such a high level.
Regards,
Daniel
4 Replies
- AnonymousNot applicable
HI Anonymous,
I don't think you can't directly ignore the summarized features on the value field, they are designed to analyze and aggregate values based on other axis and categories fields.
In addition, power bi not able to use measure expression as category/axis, they are calculated based on aggregate row contents, you cant use them as categories to expand the calculation on other records.
Regards,Xiaoxin Sheng
- AnonymousNot applicable
Hi Xiaoxin,
thank you for the explanation. I was able to get all the data as measures using table row.
br
- dm-pSuper User
Hi Anonymous,
Explicit measures cannot be used for grouping (creating row context), as without any kind of grouping, they will always result in a single, grouped (scalar) value.
For this situation, you can set the data role to:
- Grouping, in order to allow columns, or
- GroupingOrMeasure, which will allow you to add implicit measures from your data model (which are really columns) and specify that Power BI not summarise them as you are expecting.
(ref)
If you need to use measures in these roles, you will need to add another data role to specifically create row context so that they do not summarise at such a high level.
Regards,
Daniel
- AnonymousNot applicable
Hi Daniel,
thank you for the explanation and the hint with table row. I was able to get all the data as measures using table row.
br