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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bhaskarpbi999
Helper V
Helper V

DAX Calculation for Measure with multiple filter conditions

Hi,

 

I have a measure Rev CY (Revenue Current Year) which is defined using below formuls.

 

Rev CY = CALCULATE([RevRaw],MthCal[DateVisCY] = TRUE()

 

I need help to write formula to get Revenue for Current year with condition as Services="STD" and Delitype="Resi" and the columsn are highlighted in yellow of below screenshot.

 

bhaskarpbi999_0-1743773170757.png

 

The requirement is now we have all data for customers in above visual need so that percentage can be calculated  like below 

 

Rev CY data customer wise liek /Rev CY for STD and Resi (formula needed)

 

Could you please assist me thanks for your support.  I am always available to provide additional details if needed.

 

 

Regards,

Bhaskar

 

 

 

 

2 ACCEPTED SOLUTIONS

Hi Gautam,

 

Thanks for your support.

I have tried the above formula getting below error.

 

Error - The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

 

 

 

 

bhaskarpbi999_0-1743775833914.png

 

Regards,

Bhaskar

 

View solution in original post

Hi Gautam,

 

Kudos for your great support and it works now with below formula

 

Rev CY STD Resi =
CALCULATE(
[RevRaw],
MthCal[DateVisCY] = TRUE(),
MktServ[CombServCd] = "STD",
DeliType[DeliType] = "Resi")
 
I am accepting it as as solution . Many thanks/

View solution in original post

5 REPLIES 5
bhanu_gautam
Super User
Super User

@bhaskarpbi999 , Try using

DAX
Rev CY STD Resi =
CALCULATE(
[RevRaw],
MthCal[DateVisCY] = TRUE(),
Services = "STD",
Delitype = "Resi"
)




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

Proud to be a Super User!




LinkedIn






Hi Gautam,

 

Thanks for your support.

I have tried the above formula getting below error.

 

Error - The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

 

 

 

 

bhaskarpbi999_0-1743775833914.png

 

Regards,

Bhaskar

 

Hi Gautam,

 

Kudos for your great support and it works now with below formula

 

Rev CY STD Resi =
CALCULATE(
[RevRaw],
MthCal[DateVisCY] = TRUE(),
MktServ[CombServCd] = "STD",
DeliType[DeliType] = "Resi")
 
I am accepting it as as solution . Many thanks/

You have taken @bhanu_gautam suggestion at face value without checking it. You didnt provide the table names for Services or Delitype, you need to fully qualify these.

For example 'TableName'[Services] / 'TableName'[Delitype]

Hi John,

Thanks for your suppor and suggestions and it works now.

 

Regards,

Bhaslar

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.