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
Anonymous
Not applicable

Conditional Calclated column help

Hello,

First post here.  Tried to find answer, but no luck.  I have a column labeled "Frequency" with entries of "Every Month"  "Every two weeks" and "Every week."  In addtion I have a revenue column named "Amount".

 

What I want to do is create a column for "Expected Monthly Revenue" where:

 

Expected Monthly Revenue = If Frequency = Every Month, then = Amount,

                                                If Frequency = Every two weeks, then = 2*Amount,

                                                If Frequency = Every week, then = 52*Amount/12

 

I have tried in the Query Editor with Conditional column, but couldn't put a formula for result.

 

Then I've tried with calculated column, but can't find the right DAX syntax to get down to the specific entries in "Frequency" column.

Many thanks in advance

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Nevermind.  Got it! 🙂

Expected Monthly Revenue = IF(Table1[Frequency]="Every Month", Table1[Amount],IF(Table1[Frequency] = "Every 2 weeks",(26*Table1[Amount]/12),IF(Table1[Frequency] = "On the 1st & 15th",(2*Table1[Amount]),IF(Table1[Frequency] = "Every week", (52*Table1[Amount]/52)))))


@Anonymous wrote:

Hello,

First post here.  Tried to find answer, but no luck.  I have a column labeled "Frequency" with entries of "Every Month"  "Every two weeks" and "Every week."  In addtion I have a revenue column named "Amount".

 

What I want to do is create a column for "Expected Monthly Revenue" where:

 

Expected Monthly Revenue = If Frequency = Every Month, then = Amount,

                                                If Frequency = Every two weeks, then = 2*Amount,

                                                If Frequency = Every week, then = 52*Amount/12

 

I have tried in the Query Editor with Conditional column, but couldn't put a formula for result.

 

Then I've tried with calculated column, but can't find the right DAX syntax to get down to the specific entries in "Frequency" column.

Many thanks in advance

 



View solution in original post

1 REPLY 1
Anonymous
Not applicable

Nevermind.  Got it! 🙂

Expected Monthly Revenue = IF(Table1[Frequency]="Every Month", Table1[Amount],IF(Table1[Frequency] = "Every 2 weeks",(26*Table1[Amount]/12),IF(Table1[Frequency] = "On the 1st & 15th",(2*Table1[Amount]),IF(Table1[Frequency] = "Every week", (52*Table1[Amount]/52)))))


@Anonymous wrote:

Hello,

First post here.  Tried to find answer, but no luck.  I have a column labeled "Frequency" with entries of "Every Month"  "Every two weeks" and "Every week."  In addtion I have a revenue column named "Amount".

 

What I want to do is create a column for "Expected Monthly Revenue" where:

 

Expected Monthly Revenue = If Frequency = Every Month, then = Amount,

                                                If Frequency = Every two weeks, then = 2*Amount,

                                                If Frequency = Every week, then = 52*Amount/12

 

I have tried in the Query Editor with Conditional column, but couldn't put a formula for result.

 

Then I've tried with calculated column, but can't find the right DAX syntax to get down to the specific entries in "Frequency" column.

Many thanks in advance

 



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.

Top Solution Authors