The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I need assistance on the formula for computing % of new products over total. I could not achieve the desired output.
Formula should be New Product Count / Total by Region.
Eg. for Asia and Enterprise = 7 / 113 (total for Asia) = 6.19%
Correct %:
The formulas I used:
1) Count of NEW Products =
CALCULATE(
DISTINCTCOUNT(DATA[ProductID]),
DATA[Status] IN {"New"})
3) % New Products = IFERROR([Count of NEW Products]/[Total Count of Products],0)
Attaching the links for the pbix and sample data with computation.
https://drive.google.com/drive/folders/1d1ivWVWhnNzfcUGdseXiTY71pldhct5M?usp=sharing
Thanks in advance for your help.
Regards,
Summer
Solved! Go to Solution.
Hi @summer18 ,
Try this:
% New Products =
IFERROR (
[Count of NEW Products]
/ CALCULATE ( [Total Count of Products], ALLSELECTED ( DATA[Segment] ) ),
0
)
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
@summer18 , I think there some different data in pbix. Can you please check.
Hi @amitchandak , Thanks for checking into this. I updated the link
https://drive.google.com/drive/folders/1d1ivWVWhnNzfcUGdseXiTY71pldhct5M?usp=sharing
Hi @summer18 ,
Try this:
% New Products =
IFERROR (
[Count of NEW Products]
/ CALCULATE ( [Total Count of Products], ALLSELECTED ( DATA[Segment] ) ),
0
)
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
82 | |
65 | |
53 | |
52 |
User | Count |
---|---|
128 | |
115 | |
80 | |
65 | |
63 |