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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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

@admin11 , are you looking for a measure slicer with Title?

 

measure slicer
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...
https://www.youtube.com/watch?v=vlnx7QUVYME

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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