Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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.
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.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
100 | |
67 | |
44 | |
37 | |
36 |