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
Anonymous
Not applicable

How to calculate the percentage of another column with measures

Hi, 

 

Context: I have a matrix where the first value is a measure returning a count of newly created items. The rest of the values in the matrix are measures that return a count of how many of the newly created items are blank in a specific value e.g. the value named "Code". This will help our data quality employees identify the scope of missing data for newly created items. 

 

Data: The data is measured and visualized as below: 

  • Counting newly created items: count_Items = COUNT(ItemTable1[Item])
  • Counting newly created items with "Code" being blank: count_blank_Code = COUNTBLANK(ItemTable1[Code])

JacobHC_0-1665661284472.png

Wish: I would like to show the percentage of items being created with "Code" being blank for each row e.g. that the total row is 21,88%.

 

Question: How do I create a measure for this using the two mesaures I use to get the "New items created" and "Code blank" value?

 

I apologize in advance if my naming conventions for the measures are horrible. I am very new to Power BI. Any help is much appreciated!

1 ACCEPTED SOLUTION
PabloDeheza
Solution Sage
Solution Sage

Hi @Anonymous !

If I understood correctly, this should solve it:

% of Items =
DIVIDE(
    [New items created],
    [Code blank]
)

Let me know if that helps!

View solution in original post

1 REPLY 1
PabloDeheza
Solution Sage
Solution Sage

Hi @Anonymous !

If I understood correctly, this should solve it:

% of Items =
DIVIDE(
    [New items created],
    [Code blank]
)

Let me know if that helps!

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.