Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I suppose this will be pretty basic but I cannot get my way around it on my own. I have a simple file with revenue from various products from 2017 and 2018; now, some customers have purchased the product in one year, some in both, some in none.
I was using just a simple calculation of YoY %:=DIVIDE(CALCULATE([Billed revenue],'Date'[Year]="2018"),CALCULATE([Billed revenue],'Date'[Year]="2017",0))-1). This worked fine but when I have a look at the PowerPivot, it shows me so many -100% it looks awful, it is not really user-friendly and gets confusing as the number of customers is huge. I would prefer it to show blanks in case no purchase was made, but at the same time, I need to substract the 1 from the calculation as it makes no sense to show YoY growth of 103 % when i is actually 3 %. I tried to play with IFERROR but that did not solve my issue as there needs to be the -1, to see the YoY change only.
Would anyone suggest a solution please? I have tried several different forums but have not really found what I was looking for.
Thanks!
Solved! Go to Solution.
Hi,
Please have a look at this.
The example used at the bottom of that page might solve your problem.
Kind regards,
Hi,
Please have a look at this.
The example used at the bottom of that page might solve your problem.
Kind regards,
Amazing, this worked perfectly, cannot believe I did not know this function. Thanks!
User | Count |
---|---|
70 | |
70 | |
34 | |
23 | |
22 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |