Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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" ))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
20 | |
14 | |
10 | |
9 | |
6 |