Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
87 | |
84 | |
68 | |
49 |
User | Count |
---|---|
131 | |
111 | |
96 | |
71 | |
67 |