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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Pietro_Noli
Frequent Visitor

A field parameter produce wrong percentage values when nested in matrix rows

I have a Power BI report (modeled using a star schema) in which I have created:

1) a field parameter, with eight different data fields;

2) a calculation group, that contains the following time calculation items:
      a) Current year values (= "CY")
      b) The running-sum values of the current year values (= "CY Cumulate")

      c) The percentage of the different current year values against the total value of the current year (= "CY Vertical %")

In Report View I have created:

1) a multi-selection slicer with the field parameter;

2) a single-selection slicer with the year field;

3) a multi-selection slicer with the calculation items of the calculation group;

4) a matrix visual, having on rows the field parameter, on columns the calculation items and a measure (for example: quantity sold) as value.

 

The problem arises when I choose:

- two or more fields in the field parameter slicer (shown in the matrix row)s

- "CY Cumulate" or "CY Vertical %" in the slicer.

 The problem is the fact that in the intersection between the "CY Cumulate" or"CY Vertical %" columns and the inner field in the rows, the values now are wrong and they wrongly depend on how many outer items in the rows are expanded, while instead their value should always be the same indipendently on how many items are expanded in the rows.

 

Can you please help me ?
Thanks in advance,

    Pietro.

 

My report in Power BI Report ViewMy report in Power BI Report ViewExplanation in Excel, with actual wrong values and desired correct valuesExplanation in Excel, with actual wrong values and desired correct valuesCY formulaCY formulaCY Cumulate formulaCY Cumulate formulaCY Vertical % formulaCY Vertical % formula 

4 REPLIES 4
Pietro_Noli
Frequent Visitor

Hi @some_bih ,

the problem is NOT solved.
Correcting the formula for the "CY Cumulate" measure does NOT give the correct values that I show in green color in a previous Excel image. I can still see the same values that are highlighted in yellow in that image.
Someone can help me?
Thanks in advance,

    Pietro.

some_bih
Super User
Super User

Hi @Pietro_Noli so measure/s works when Quearter is not selected in field parameter slicer?

I notice that you have 8 possible values in field parameter slicer while 6 in measure CY Cumulate, part SWITCH (Quarter and Month are extras?)

 





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

Proud to be a Super User!






Hi @some_bih ,

you are right: in the "CY Cumulate" measure formula, I'm missing Quarter and Month sections.

The correct formula for the "CY Cumulate" measure formula is in the following image:

Correct "CY Cumulate" measure formulaCorrect "CY Cumulate" measure formula

 

Thanks for your help.

     Pietro.

Hi @Pietro_Noli if this help please accept as Solution so other member of community could use it.

Thank you.





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

Proud to be a Super User!






Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors