Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hey all,
I have a data with range from 10-100 suppose and I want segregate that data with 5 increment and count the number in that range
e.g
0-5 -0
5-10 -0
10-15 -11 like this
But I have data starting from 10 only 0-5 range is not present so when I am creating the table 0-5 range is not present
can anyone please guide me how to achieve this ?
Solved! Go to Solution.
Hi @esam
You can refer to the following example
1.Create the calculated table
Table = var a=GENERATESERIES(1,100/5,1)
return ADDCOLUMNS(a,"Range",[Value]*5-5&"-"&[Value]*5)
2.The example data table
3.Create the measure
Measure = COUNTROWS(FILTER('Table 2',[Value]>SELECTEDVALUE('Table'[Value])*5-5&&[Value]<=SELECTEDVALUE('Table'[Value])*5))
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @esam
You can refer to the following example
1.Create the calculated table
Table = var a=GENERATESERIES(1,100/5,1)
return ADDCOLUMNS(a,"Range",[Value]*5-5&"-"&[Value]*5)
2.The example data table
3.Create the measure
Measure = COUNTROWS(FILTER('Table 2',[Value]>SELECTEDVALUE('Table'[Value])*5-5&&[Value]<=SELECTEDVALUE('Table'[Value])*5))
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @esam
Check the attached PBIX. I have recreated the scenario.
Let me know if this helps!
If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!
User | Count |
---|---|
98 | |
91 | |
84 | |
72 | |
67 |
User | Count |
---|---|
114 | |
103 | |
100 | |
72 | |
64 |