Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello Community,
I'm trying to create measure which will calculate (column A/column B) depend on value in column C (text).
The goal is to get one formula which is able to recognaze if customize contition will check value from column C and base on true/false will choose one from two options of calculation:
Score = (column A/column B) if row in column C is <> "text"
Score = (column A/column B)/2 if row in column C is = "text".
Finally i tried to create on measure like:
Does anybody know how to create this type of measure? Thanks in advance for any suggestions 🙂
Regards,
Jakub
Solved! Go to Solution.
@Anonymous , measure can take measure or aggregated columns
EFEKT. = if(max('efektywność'[process]) = "wtryskarki", sum('Efektywność'[Ilość godzin SAP (PIM1)])/sum('Efektywność'[Ilość rbh (PIM1)])/2, sum('Efektywność'[Ilość godzin SAP (PIM1)])/sum('Efektywność'[Ilość rbh (PIM1)]))
or
use filter
EFEKT. = calculate( sum('Efektywność'[Ilość godzin SAP (PIM1)])/sum('Efektywność'[Ilość rbh (PIM1)])/2, sum('Efektywność'[Ilość godzin SAP (PIM1)])/sum('Efektywność'[Ilość rbh (PIM1)]) , filter( 'efektywność' ,'efektywność'[process] = "wtryskarki" ))
Aggregate form "max" is working for my case. Thank you @amitchandak ! :).
I was not aware that "max" can be use for text values..
Best Regards,
Jakub
@Anonymous , measure can take measure or aggregated columns
EFEKT. = if(max('efektywność'[process]) = "wtryskarki", sum('Efektywność'[Ilość godzin SAP (PIM1)])/sum('Efektywność'[Ilość rbh (PIM1)])/2, sum('Efektywność'[Ilość godzin SAP (PIM1)])/sum('Efektywność'[Ilość rbh (PIM1)]))
or
use filter
EFEKT. = calculate( sum('Efektywność'[Ilość godzin SAP (PIM1)])/sum('Efektywność'[Ilość rbh (PIM1)])/2, sum('Efektywność'[Ilość godzin SAP (PIM1)])/sum('Efektywność'[Ilość rbh (PIM1)]) , filter( 'efektywność' ,'efektywność'[process] = "wtryskarki" ))
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |