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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
admin11
Memorable Member
Memorable Member

How to Combine Column Expression with AMOUNT ?

Hi All

 

I have one of the Revenue chart , when i plot i need to Revenue by month , i need to Click on the 1_REV Button. 

 
1_REV =
SWITCH(TRUE(),
'GL'[Reporting Code]>=00001 &&'GL'[Reporting Code]<=00019,"REV",
BLANK())
 

Can some one advise me how to combine Above column with Feild name = Amount ? 

So that user don't need to click 1_REV

 

I try below , it cannot work :-

REV_AMOUNT = ('GL'[Reporting Code]>=00001 &&'GL'[Reporting Code]<=00019,"REV")XAMOUNT

 

admin11_0-1616413896576.png

 

Enclosed below link my PBI file :-

https://www.dropbox.com/s/qudpuq50vl51coy/PBT_V2021_392%20TI_SI_GL%20Combine%201_REV%20with%20Amount...

 

Paul

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi @admin11 

You can create a Measure and use this Measure to create visual.

 

REV_AMOUNT = CALCULATE([AMOUNT],FILTER(GL,GL[Reporting Code]>=00001&&GL[Reporting Code]<=00019))

 

The result looks like this:

v-cazheng-msft_0-1616565661298.png

 

Best Regards

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-cazheng-msft
Community Support
Community Support

Hi @admin11 

You can create a Measure and use this Measure to create visual.

 

REV_AMOUNT = CALCULATE([AMOUNT],FILTER(GL,GL[Reporting Code]>=00001&&GL[Reporting Code]<=00019))

 

The result looks like this:

v-cazheng-msft_0-1616565661298.png

 

Best Regards

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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