Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

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

 

GuFa_0-1633421181015.pngGuFa_1-1633421245356.png

How can I get the dont summarize option?

 

br

1 ACCEPTED SOLUTION
dm-p
Super User
Super 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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

4 REPLIES 4
dm-p
Super User
Super 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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Anonymous
Not 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

v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi Xiaoxin,

 

thank you for the explanation. I was able to get all the data as measures using table row.

 

br

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.