Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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", ...
  • dm-p's avatar
    4 years ago

    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