Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello, Need a measure to present Yes/NO based on condition. If only one is NO in SKU 85 Measure the new measure should present 'NO" for each row. in this case for sales id 0002, i need to present Yes, for each row and in second case for Sales ID 269 need to present "NO" for all rows as we have no against size 30 30. Actually need to use "AND GATE"Rules, for Open all values should be "Yes" if one of the value is NO it should be NO against all rows. (SKU 85 is also a measure
Hi @pbix_users , hello Kedar_Pande, thank you for your prompt reply!
Please create the measure as shown below:
New Measure =
IF(
CONTAINSSTRING(
CONCATENATEX(
FILTER(ALL('Table'), 'Table'[Sales ID] = MAX('Table'[Sales ID])),
[SKU 85],
""
),
"No"
),
"No",
"Yes"
)
Result:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Wrong, it should be Yes for sales id 1. and no for 269.
Hi @pbix_users ,
Thank you for your feedback.
If possible, could you please upload your PBIX file for further troubleshooting?
Please ensure it contains sample data that doesn’t include any sensitive information.
Thank you for your understanding!
? Need to implement "AND" condition if all rows equal to yes, then "Yes". If one of the row equal to "No" for all rows against particular sales order it should present "NO".
Final Result measure:
Final Result =
IF (
COUNTROWS (
FILTER (
VALUES('YourTableName'[Sales ID]),
CALCULATE(
MIN('YourTableName'[SKU 85])
) = "No"
)
) > 0,
"No",
"Yes"
)
If this helped, a Kudos 👍 or Solution mark would be great!
Cheers,
Kedar Pande
www.linkedin.com/in/kedar-pande
MIN('YourTableName'[SKU 85])
SKU85 is also a measure. when i put min against measure, i got an error.
he MIN function only accepts a column reference as the argument number 1.
This measure doesn't works in my case.
Updated Measure:
Final Result =
VAR _val=[ SKU 85 ]
IF (
COUNTROWS (
FILTER (
VALUES('YourTableName'[Sales ID]),
CALCULATE(
_val = "No"
)
) > 0,
"No",
"Yes"
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
79 | |
54 | |
39 | |
35 |
User | Count |
---|---|
102 | |
82 | |
48 | |
48 | |
48 |