Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Community,
I need a Custom Column whereas
Index Column=1 then Custom = 1,
Index Column=2 then Custom = 2,
Index Column=3 then Custom = 3,
Index Column=4 then Custom = 1,
Index Column=5 then Custom = 2,
Index Column=6 then Custom = 3 and so on.
Please do favour if you would help me
Solved! Go to Solution.
Use this function: https://docs.microsoft.com/en-us/powerquery-m/number-mod
or via the UI
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Hi @Sowmiya
Try this custom Column
=if Number.Mod([Index],3) = 0 then 3 else Number.Mod([Index],3)
Hi @Sowmiya
Try this custom Column
=if Number.Mod([Index],3) = 0 then 3 else Number.Mod([Index],3)
Use this function: https://docs.microsoft.com/en-us/powerquery-m/number-mod
or via the UI
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
68 | |
53 | |
39 | |
33 |
User | Count |
---|---|
71 | |
63 | |
57 | |
49 | |
46 |