March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |