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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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