Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
I would like some help with the attached file.
In the first column (periodo_ativacao), I have the month in which sales were made.
In the first row, I have the total that was activated in the month of the column and how many remained in the following months.
For example, for the activation period of 2022-01, I had 260 sales in the month, and in the subsequent month, 128 remained active, and so on.
My problem is that it comes in whole numbers, and I would like it in percentage, starting with 100% and decreasing.
I would also like it to change color every 10% to demonstrate where I have more loss.
Does anyone have an idea of how I can do this?
Thank you.
https://drive.google.com/file/d/1mWgTNHfJk9GaG9nUi03MqwABMbrx_7fr/view?usp=sharing
Solved! Go to Solution.
Thank you for your clarification. I tweaked the measure and produced the same output as your requirement.
The measure I tweaked which was used as the divisor of the divide function to get the percentage is as follows:
I attach the link to the revised file. It is always fun to experiment with dax. 😋
Hi Sakiko
Thank you for your feedback, but what I need is for the % to be for each row, with 100% starting from the first record. I've placed the first three rows in Excel to give you an idea of what I need.
Thank you for your clarification. I tweaked the measure and produced the same output as your requirement.
The measure I tweaked which was used as the divisor of the divide function to get the percentage is as follows:
I attach the link to the revised file. It is always fun to experiment with dax. 😋
Thank you, @DataNinja777 , for your prompt and effective help in resolving my question on the Power BI community forum. I appreciate it, and thank you for your time in assisting me.
Hi @RSSILVA_22,
Thanks for sharing the download link. I've created the % measure which you requested and prepared the visualization below in accordance with your specification. The important thing is not to depend on the implicit measures created automatically by power BI, as they are limited in usability. It is always better to write explicit measures in order to get maximum benefit of what dax can do. I created 3 additional explicit measures as shown below.
I attach the link to the updated pbix file in the link below:
https://1drv.ms/u/s!AlqFfzVTqicpnV_chPobQjl7UmQQ?e=lbJxv5
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
29 | |
14 | |
11 | |
10 | |
9 |