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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gourangshah24
Frequent Visitor

Request to assit with static first row as numbers and remaining rows to be % of grand total

Hi Powerbi users,

Greetings !!!

 

I am faced with a unique challenge and not sure if I can find a solution in PowerBI desktop. I have the following table in excel:

 

Actual Data
Audit compliancesMay-19Jun-19Jul-19
 No. of CC Audits139177126
1. No Transactions11254
2. 0% Compliant345617
3. > 50% Compliant192116
4. 50 <> 99% Compliant574364
5. 100% Compliant183225
% of Grand Total139177126

 

Now, I need to keep the first row static i.e. to show it as numbers, thereafter from 2nd row onwards, i need to have the number converted to % of grand total as below:

 

Data expected from PowerBI
Audit compliancesMay-19Jun-19Jul-19
 No. of CC Audits139177126
1. No Transactions8%14%3%
2. 0% Compliant24%32%13%
3. > 50% Compliant14%12%13%
4. 50 <> 99% Compliant41%24%51%
5. 100% Compliant13%18%20%
% of Grand Total100%100%100%

 

The result that i am getting from doing % of power bi is as under:Audit_Data_Error.jpg

 

It would be great if anyone can share a solution with the query to the above.

 

Regards,

Gourang shah

 

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

@gourangshah24 

 

You may refer to the measure below.

Measure =
SWITCH (
    SELECTEDVALUE ( 'Table'[Audit compliances] ),
    BLANK (), "100%",
    "No. of CC Audits", [Count],
    FORMAT (
        DIVIDE (
            [Count],
            CALCULATE (
                [Count],
                'Table'[Audit compliances] = "No. of CC Audits"
            )
        ),
        "0%"
    )
)

 

Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@gourangshah24 

 

You may refer to the measure below.

Measure =
SWITCH (
    SELECTEDVALUE ( 'Table'[Audit compliances] ),
    BLANK (), "100%",
    "No. of CC Audits", [Count],
    FORMAT (
        DIVIDE (
            [Count],
            CALCULATE (
                [Count],
                'Table'[Audit compliances] = "No. of CC Audits"
            )
        ),
        "0%"
    )
)

 

Community Support Team _ Sam Zha
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

You need to create a sort sequence for column Audit compliances and mark that as sort column for this column and then sort on Audit compliances. It will do it.

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

Sort Month.pngSort_by_column.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors