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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
PBI_newuser
Post Prodigy
Post Prodigy

How to replicate the result in a measure if there's no value in the column of the dataset

Hi, I have a dataset as below, and I created a measure to calculate the usage %. However, there is no Activity C in Warehouse W2, but I want the final output to show the same result as Activity A in Warehouse W2, how to create the measure?

Usage % = Item Used / Item Count

 

ActivityWarehouse Item CountItem UsedUsage %
AW1100050050%
BW12002010%
CW1105024023%
AW2131334426%
BW245351213%

 

Final Output:

WarehouseActivityUsage %
W1A50%
 B10%
 C23%
W2A26%
 B3%
 C26%
4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1726197055523.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur , we have many warehouses and acitivities in the dataset. But for certain warehouses, we want to replicate the result based on certain activity. For example, for warehouse W2 acitivity C, we want to replicate the result for item count, item used, usage % by using warehouse W2 activity A. It might have other combination like warehouse W3 activity C to replicate result with warehouse W3 activity B. How to create this measure? 🙂

I am not sure.  To start with, create a 2 column table of warehouse and activity.  For each warehouse, show the activity you would like to refer to incase there is no activity data of that warehouse in your fact table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
bhanu_gautam
Super User
Super User

@PBI_newuser , First create a usage measure

 

   Usage % = DIVIDE(SUM('Table'[Item Used]), SUM('Table'[Item Count]), 0)
 
Then you can create a calculated column that assigns the Usage % of Activity A to Activity C in Warehouse W2.
Adjusted Usage % =
IF(
'Table'[Activity] = "C" && 'Table'[Warehouse] = "W2",
CALCULATE(
[Usage %],
'Table'[Activity] = "A",
'Table'[Warehouse] = "W2"
),
[Usage %]
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors