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.
Solved! Go to Solution.
Hi @Muneeb91 ,
You can try this method:
Alarm & Efficiency % =
VAR __Calc1 = 'A&E'[AP]
VAR __Calc2 = 'A&E'[E]
VAR __Calc3 = ( 'A&E'[E] + 'A&E'[AP] ) / 2
RETURN
SWITCH (
TRUE (),
ISBLANK ( __Calc1 ), __Calc2,
ISBLANK ( __Calc2 ), __Calc1,
NOT ( ISBLANK ( __Calc1 ) && ISBLANK ( __Calc2 ) ), __Calc3
)
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Muneeb91 ,
You can try this method:
Alarm & Efficiency % =
VAR __Calc1 = 'A&E'[AP]
VAR __Calc2 = 'A&E'[E]
VAR __Calc3 = ( 'A&E'[E] + 'A&E'[AP] ) / 2
RETURN
SWITCH (
TRUE (),
ISBLANK ( __Calc1 ), __Calc2,
ISBLANK ( __Calc2 ), __Calc1,
NOT ( ISBLANK ( __Calc1 ) && ISBLANK ( __Calc2 ) ), __Calc3
)
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Muneeb91,
Use:
Alarm & Efficiency % =
VAR _Calc1 = [alarm percentage]
VAR _Calc2 = [Efficiency %]
VAR _Calc3 = ([Efficiency %]+[alarm percentage])/2
RETURN
IF(ISBLANK(_Calc1),_Calc2,_Calc3)
Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Graphical Comparison
Thats great thank you. Is there also a way to do the same for cal2 also?
So if Calc1 is blank only return Calc2,
if Calc2 is blank only return Calc1,
and if neither Calc1 or Calc2 are blank return Calc3
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 |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |