Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
I am trying to get the Product_id_count with a few filters. But which ever method I try, I am not able to get it.
My requirement is to get the distinct count of product_id's
where
(calculated_Product_rating_table[Overall_Approval__Rate>60%]=TRUE
or
calculated_Product_rating_table[TV_Approval__Rate>50%]=TRUE
or
calculated_service_rating_table[TV Repeat >= 150%])=TRUE
or
calculated_service_rating_table[Overall Repeat >= 300%])=TRUE)
I tried the below formulas but none of them worked, all gave me one or the other error. Hence asking you for help.
Regards
-Shashanth
Solved! Go to Solution.
Guys, I was able to find a solution. A collegue of mine helped me.
Basically we created an other table WITHOUT USING SUMMARIZE(I did not know this was possible/allowed)
Guys, I was able to find a solution. A collegue of mine helped me.
Basically we created an other table WITHOUT USING SUMMARIZE(I did not know this was possible/allowed)
@Shashanth , Try like
product_id_count = CALCULATE(DISTINCTCOUNTNOBLANK(calculated_Product_rating_table[product_id]),filter(values(calculated_Product_rating_table[product_id]), OR(or(calculated_Product_rating_table[Overall_Approval__Rate>60%]=TRUE,calculated_Product_rating_table[TV_Approval__Rate>50%]=TRUE),or(LOOKUPVALUE(calculated_service_rating_table[Overall Repeat >= 300%],calculated_Product_rating_table[product_id],calculated_service_rating_table[product_id])=TRUE,LOOKUPVALUE(calculated_service_rating_table[TV Repeat >= 150%],calculated_Product_rating_table[product_id],calculated_service_rating_table[product_id])=TRUE))))
or
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hi Amit,
Thanx for your response.
I am not able to get this working.
Still not sure what the error is.
And wrt sharing a sample file, I am not able to do it since it is a direct query mode to the servers with lot of data.
Is there any ther solution that you can help me out with?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
10 |