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
It_Is_Me
New Member

Requesting Help to Calculate Multi-Level Fail Rate on a Line Chart+Slicer Combination

Hello,

I have a set of data that looks like the one I have pasted below.

Data - 

There are two regions - R1 and R2. And each region has three groups - R1 has G1, G2, G3 and R2 has G4, G5, G6.

Then, there are Volumes and Fails for each date-region-group combination, from which the Fail Rate is calculated (Fail/Volume).

My requirement - 

I need to show the Fail Rate on a Line Chart.

It should only show the Fail rate for each date. Then, there would be two slicers for region and group.

So,when I select R1 in the region slicer, then the chart should show the Fail Rate for R1. If I select G5 in the Group filter, then the chart should show the Fail Rate for G5.

Challenge -

The challenge that I am facing with the below data is that, when I represent this on a Line Chart, and then put in a slicer and select R1, then it sums up the Fail Rate, which is incorrect.

How can resolve this? 

As explained, I need the original view as only date-wise Fail Rate and as and when slicers are selected, then those rates should pop-up.

I know, I can calculate three separate fail rates, one for Date-wise, one for region-wise and one for group-wise, but then I will have to put that into three charts and not one.

I hope my explaination makes sense.

 

Any support will be much appreciated.

Thank You so much. 

DateRegionGroupVolumeFailFail Rate
5/12/2023R1G136652570.070123
5/12/2023R1G276883520.045786
5/12/2023R1G369301740.025108
5/12/2023R2G424901810.072691
5/12/2023R2G520432100.10279
5/12/2023R2G621521620.075279
5/13/2023R1G227621200.043447
5/13/2023R1G335902020.056267
5/13/2023R2G423841860.07802
5/13/2023R2G513424260.317437
5/14/2023R1G149212010.040845
5/14/2023R2G631623780.119545
5/15/2023R1G182565000.060562
5/15/2023R1G260442640.04368
5/15/2023R1G353024960.09355
5/15/2023R2G494933210.033814
5/15/2023R2G588411380.015609
5/15/2023R2G620123600.178926
5/16/2023R1G269422970.042783
5/16/2023R1G381662010.024614
5/16/2023R2G434841090.031286
5/16/2023R2G550772510.049439
5/17/2023R1G139224740.120857
5/17/2023R2G678612200.027986

 

Thank You

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @It_Is_Me ,

 

Please try:

First add a new column:

vjianbolimsft_0-1684742519655.png

Then create a field parameter:

vjianbolimsft_1-1684742890465.png

Then add the parameter to the legend of the line chart:

vjianbolimsft_2-1684742927170.png

When you want to change the slicer, choose the parameter first:

vjianbolimsft_3-1684742997244.png

vjianbolimsft_4-1684743011714.png

vjianbolimsft_5-1684743047013.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @It_Is_Me ,

 

Please try:

First add a new column:

vjianbolimsft_0-1684742519655.png

Then create a field parameter:

vjianbolimsft_1-1684742890465.png

Then add the parameter to the legend of the line chart:

vjianbolimsft_2-1684742927170.png

When you want to change the slicer, choose the parameter first:

vjianbolimsft_3-1684742997244.png

vjianbolimsft_4-1684743011714.png

vjianbolimsft_5-1684743047013.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.