Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
I have created a measure to count the carry overs (previous month values on selected month). The results are working fine, but i want to apply one more filter to exclude the rows which contains the words "ABC" or "DEF".
Below is the current measure which gives me total count, including ABC and DEF
How can i fitler the values excluding the above criteria
Solved! Go to Solution.
Hi @vijayvizzu ,
Please update the formula of measure as below and check whether it can get the correct result. You can find the attachment for the details.
|
Measure =
VAR CarryoverCount =
CALCULATE (
COUNT ( 'Forwarder Details'[Carry Over] ),
PREVIOUSMONTH ( calTable[Date] ),
FILTER (
ALL ( 'Forwarder Details' ),
NOT ( 'Forwarder Details'[Custom] IN { "ABC", "DEF" } )
)
)
RETURN
CarryoverCount
|
Best Regards
@vijayvizzu , Try like
CarryOver =
VAR CarryoverCount =
CALCULATE(
COUNT('Forwarder Details'[Carry Over]),
PREVIOUSMONTH( calTable[Date] ),
filter('Forwarder Details', not('Forwarder Details'[column] in {"ABC" , "DEF"}))
)
@amitchandak Thanks for your support, i modified the measure, but it doesn't gives any values (blank)
Hi @vijayvizzu ,
Please update the formula of measure as below and check whether it can get the correct result. You can find the attachment for the details.
|
Measure =
VAR CarryoverCount =
CALCULATE (
COUNT ( 'Forwarder Details'[Carry Over] ),
PREVIOUSMONTH ( calTable[Date] ),
FILTER (
ALL ( 'Forwarder Details' ),
NOT ( 'Forwarder Details'[Custom] IN { "ABC", "DEF" } )
)
)
RETURN
CarryoverCount
|
Best Regards
@vijayvizzu ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 62 | |
| 62 | |
| 42 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 120 | |
| 105 | |
| 38 | |
| 29 | |
| 28 |