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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PS_78
Helper II
Helper II

% Calculation in SUMMARIZECOLUNS

Hello Team - I am working on a requirement to consolidate different metrics and show in 1 single tabular fomat. I have the data as below:

Document Number (DN)Document Type (DT)
DN1IN - Invoices
DN2VP - Vendor Payment
DN3IG - Invoice Gross
DN4PP - Payment Posting
DN5IN - Invoices
DN6IN - Invoices
DN6PP - Payment Posting

 

I would like to get this into below format.

 

KPIValueComment
# of Invoices4Count of DN's where DT = IN or IG
% of Electronic Payments33.33%Count of VP's / (Count of VP's + Count of PP's)

 

Like this, I have multiple KPI's. I am trying by creating a table at DAX level using SUMMARIZECOLUMNS. I am able to do for count but not %. Please help me if this can be achievable. If so, please guide.

 

Thanks,

Phani

2 REPLIES 2
PS_78
Helper II
Helper II

Thank you, @Ritaf1983 . This would really help in formatting the measures.

 

Correction: Now I am able to do the % calculation. But when I take off the granulariy, % is summarized. Please see below screenshots.

PS_78_1-1710343429669.png

% Period wise is correct.

 

PS_78_2-1710343608486.png

When I take off period from the visual, it goes wrong as it sums both the percentages. Ideally it should be 3.09% (35/1132) but it shows as 5.89%.

PS_78_3-1710343705718.png

 

 

Thanks,

Phani

Ritaf1983
Super User
Super User

Hi @PS_78 
You need to create a table of wanted measures and achieve the goal using dynamic measure with selected value function.
Please refer to the linked post, my solution there includes PBIX.

https://community.fabric.microsoft.com/t5/Desktop/Convert-Actual-and-Plan-KPI-Measures-into-Table-wi...

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.