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
JPrince_22
Helper I
Helper I

Showing results as a percentage of previous results

Stage% of cases
step 121
step 216
step 36
step 45
TOTAL48

 

Hi

 

I have created a table visual in Power BI similar to the above which counts rows where a certain value appears. Each value is a step in a sequence, and i am trying to show the conversion rate from each step. 

 

The measure used to get the results is as follows:

 

 

 

Count of Step running total in Date = 
CALCULATE(
	COUNTA('stageTable'[Step]),
	FILTER(
		ALLSELECTED('StageTable'[Date]),
		ISONORAFTER('StageTable'[Date], MAX('StageTable'[Date]), DESC)
	)
)

 

 

 

I have been trying to use percentage of total, however the total is adding the results together. I would want therefore the total to be 21 in the example below, and to be able to display 100% instead of 21, with 76% in the second row and so on, but it is currently working out 21 as a % of 48. 

 

Help!! 

 

 

 

 

 

2 ACCEPTED SOLUTIONS

 

 

Sorry the data is extremely complex and confidential so unable to share, but in the end i just hardcoded the total in each measure as this is a one off data request, so manged to get around the issue.

 

Thanks for the suggestions 

View solution in original post

Hi @JPrince_22 

If you want it to be dynamic, you could check my answers below:

dynamic total =
IF (
    HASONEVALUE ( Sheet3[Stage] ),
    [Count of Step running total in Date],
    CALCULATE (
        [Count of Step running total in Date],
        FILTER (
            ALLSELECTED ( Sheet3 ),
            Sheet3[Stage] = "step1"
        )
    )
)

Measure =
[dynamic total]
    / CALCULATE (
        [Count of Step running total in Date],
        FILTER (
            ALLSELECTED ( Sheet3 ),
            Sheet3[Stage] = "step1"
        )
    )

Capture8.JPG

Best Regards
Maggie
Community Support Team _ Maggie 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

6 REPLIES 6
v-juanli-msft
Community Support
Community Support

Hi @JPrince_22 

Does the measure [Count of Step running total in Date] refer to the column [% of case] on your visual?

Could you show simple original data and expected result?

 

Best Regards

Maggie

 

 

Sorry the data is extremely complex and confidential so unable to share, but in the end i just hardcoded the total in each measure as this is a one off data request, so manged to get around the issue.

 

Thanks for the suggestions 

Hi @JPrince_22 

If you want it to be dynamic, you could check my answers below:

dynamic total =
IF (
    HASONEVALUE ( Sheet3[Stage] ),
    [Count of Step running total in Date],
    CALCULATE (
        [Count of Step running total in Date],
        FILTER (
            ALLSELECTED ( Sheet3 ),
            Sheet3[Stage] = "step1"
        )
    )
)

Measure =
[dynamic total]
    / CALCULATE (
        [Count of Step running total in Date],
        FILTER (
            ALLSELECTED ( Sheet3 ),
            Sheet3[Stage] = "step1"
        )
    )

Capture8.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

Something like this

% = 
divide(
CALCULATE(
	COUNTA('stageTable'[Step]),
	FILTER(
		ALLSELECTED('StageTable'[Date]),
		ISONORAFTER('StageTable'[Date], MAX('StageTable'[Date]), DESC)
	)
),
CALCULATE(
	COUNTA('stageTable'[Step]),
		ALL('StageTable')
)
)

This is just returning 0's as the result

Can you share sample data and sample output.

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.