Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Solved! Go to Solution.
Hi,
Could you please try something like below whether it suits your requirement?
Summary Table =
SUMMARIZE (
Table,
Table[ID],
"Price",
SWITCH (
TRUE (),
CALCULATE ( COUNTA ( Table[product] ) ) > 0,
FORMAT (
DIVIDE (
CALCULATE ( COUNTA ( Table[product] ), Table[product] = "lemon" ),
CALCULATE ( COUNTA ( Table[product] ) )
),
"0.00%"
),
CALCULATE ( COUNTA ( Table[product] ) )
== 0
|| CALCULATE ( COUNTA ( Table[product] ), Table[product] = "lemon" ) == 0, "0.00%",
"-"
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Could you please try something like below whether it suits your requirement?
Summary Table =
SUMMARIZE (
Table,
Table[ID],
"Price",
SWITCH (
TRUE (),
CALCULATE ( COUNTA ( Table[product] ) ) > 0,
FORMAT (
DIVIDE (
CALCULATE ( COUNTA ( Table[product] ), Table[product] = "lemon" ),
CALCULATE ( COUNTA ( Table[product] ) )
),
"0.00%"
),
CALCULATE ( COUNTA ( Table[product] ) )
== 0
|| CALCULATE ( COUNTA ( Table[product] ), Table[product] = "lemon" ) == 0, "0.00%",
"-"
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
130 | |
80 | |
53 | |
38 | |
35 |
User | Count |
---|---|
207 | |
82 | |
75 | |
55 | |
50 |