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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors