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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Creating new measure that return value in percentage for each column

Hi,

 

I want to create the measure of sales profit that would return value in % for every column. Please find the snapshot below.

 

Measure=% Sales Profit = ( Actual Sales / (Sales ignored+Expected Sales) ) * 100.

 

vgkext_0-1622660957580.png

 

1 ACCEPTED SOLUTION

@Anonymous 

Create the following measure :

% Sales Profit = 

var A = CALCULATE( SUM(Table8[Value]),Table8[Billing Scores] = "A = Actual Sales")
var C = CALCULATE( SUM(Table8[Value]),Table8[Billing Scores] = "C = Expected Sales")
var B = CALCULATE( SUM(Table8[Value]),Table8[Billing Scores] = "B = Sales ignored")
return
    DIVIDE(
        A,
        (B+C)
    )

Fowmy_0-1622665773056.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

5 REPLIES 5
Fowmy
Super User
Super User

@Anonymous 

What are scores? are they measures or rows in a table?
can you share the screenshot of the source data table?

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi 

 

Please find the snapshot.

using Matrix Visualization, Now how to create the measure of % Sales_Profit

vgkext_0-1622664541824.png

 

@Anonymous 

Create the following measure :

% Sales Profit = 

var A = CALCULATE( SUM(Table8[Value]),Table8[Billing Scores] = "A = Actual Sales")
var C = CALCULATE( SUM(Table8[Value]),Table8[Billing Scores] = "C = Expected Sales")
var B = CALCULATE( SUM(Table8[Value]),Table8[Billing Scores] = "B = Sales ignored")
return
    DIVIDE(
        A,
        (B+C)
    )

Fowmy_0-1622665773056.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi,

 

Getting below report with the measure

- As my requirement is to show the % sales profit above the column total value, not as below.

Required output as below.

vgkext_2-1622669948562.png

 

vgkext_0-1622669186224.png

- Below is the Visualization

 

vgkext_1-1622669281591.png

 

Anonymous
Not applicable

Hi, Please find the below Matrix Visualization..

Need to add measure which is 

Measure=% Sales Profit = ( Actual Sales / (Sales ignored+Expected Sales) ) * 100.

need to show above the column "Total".

vgkext_1-1622665009765.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.