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
Justas4478
Responsive Resident
Responsive Resident

Not fulfilled %

Hi, I have this measure

% Fulfilment = 'Outbound Delivery'[Total Actual]/'Outbound Delivery'[Total Demand]
It calculates number of fulfilment. Results number for example 0.985 and so on.
I change it to a % and get 98.5% and it works fine.
I as well need to create measure that calculates amount that is not fulfiled.
If we follow example not fulfiled would be 1.5%, but none of the measures that I tried seam to work correctly when I add them to the table.
Anyone would be able to help.
1 ACCEPTED SOLUTION
v-yifanw-msft
Community Support
Community Support

Hi @Justas4478 ,

Thank you @Uzi2019  for your prompt reply, I have created a sample data for you to help you solve your problem. You can follow the steps below:

Sample data:

vyifanwmsft_0-1711085124831.png

1.Add a new column:

%Not Fulfilment = 
VAR _All = 1 - ( 'Outbound Delivery'[Total Actual] / 'Outbound Delivery'[Total Demand] )
RETURN
    IF (
        'Outbound Delivery'[Total Actual] = BLANK ()
            || 'Outbound Delivery'[Total Demand] = BLANK (),
        BLANK (),
        _All
    )

Final output:

vyifanwmsft_1-1711085170146.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

7 REPLIES 7
v-yifanw-msft
Community Support
Community Support

Hi @Justas4478 ,

Thank you @Uzi2019  for your prompt reply, I have created a sample data for you to help you solve your problem. You can follow the steps below:

Sample data:

vyifanwmsft_0-1711085124831.png

1.Add a new column:

%Not Fulfilment = 
VAR _All = 1 - ( 'Outbound Delivery'[Total Actual] / 'Outbound Delivery'[Total Demand] )
RETURN
    IF (
        'Outbound Delivery'[Total Actual] = BLANK ()
            || 'Outbound Delivery'[Total Demand] = BLANK (),
        BLANK (),
        _All
    )

Final output:

vyifanwmsft_1-1711085170146.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

@v-yifanw-msft Hi, it works.

Justas4478_1-1711097265852.png

 


Thank you for the solution.

Would it be possible to explain how the measure works if its not to much to ask?

 

Hi @Justas4478 ,
Sure, I would be happy to answer that for you. As the result of the calculation will include the blank values in the data as well. You can remove the blank data after listing the equation to eliminate its effect on the result.

 

Best Regards,

Ada Wang

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

@v-yifanw-msft Thank you for explaining and the help.

Uzi2019
Super User
Super User

Hi @Justas4478 

Just try to modify your measure for not fulfilment
%Not Fulfilment = 1- ('Outbound Delivery'[Total Actual]/'Outbound Delivery'[Total Demand])

 

I hope this what you are trying to achieved.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

@Uzi2019 Hi, I tried your solution and it has same problem as other solutions that I tried.
It as well calculates for rows that do not have any data which is what I am trying to prevent.

Justas4478_0-1711017891343.png 
I would hope end result would look like this but data in the red circle would be that 1.5% data.

Justas4478_1-1711018114498.png

 

 

@Uzi2019 I tied to filter out blank values but that only partialy helps.

It does not filter out if there is even one value in day column

Justas4478_0-1711032369967.png

 

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.