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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
gaurav8494
Frequent Visitor

Measure as Filter

Hi All,
 
I have 2 measures, used to calculate Open deals and lost deal.
I have created a tabular view to display all the deals and income and other related fields. Mow I want to add the measure lost and open as slicer and this table should respond if I select open or lost and if I dont select anything or both.
I checked few solutions on youtube and I have created a DAX for that, but it's not able to filter out the data in the tabular view. 
gaurav8494_0-1668118440611.png

 

 
Lost Funding Deal = CALCULATE([Funding Leads], 'Deal'[Stage]="Lost")
Open Deals (All) = calculate([Open Funding Deal],All('Date'))
 
# deal by stat =
VAR op = [Open Deals (All)]
return
IF(
    HASONEVALUE('Table'[stat]),
    SWITCH(TRUE(),
    VALUES('Table'[val])=1, op,
    VALUES('Table'[val])=2, [Lost Funding Deal])
    )
 
 
1 ACCEPTED SOLUTION
Shaurya
Memorable Member
Memorable Member

Hi @gaurav8494,

 

Why don't you create a column for Lost and Open Deals using the conditions that you have used in your measures. Then use that column as the field in the slicer which will filter the table visuals.

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

View solution in original post

2 REPLIES 2
gaurav8494
Frequent Visitor

Legend!!

Shaurya
Memorable Member
Memorable Member

Hi @gaurav8494,

 

Why don't you create a column for Lost and Open Deals using the conditions that you have used in your measures. Then use that column as the field in the slicer which will filter the table visuals.

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.