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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.