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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |