Forum Discussion
Mobile Data Usage
| Username | Data usage (GBs) | Month |
| csherborn0 | 36 | Jan |
| llorenzetti1 | 84 | Jan |
| thuddlestone2 | 86 | Jan |
| tleseka | 56 | Jan |
| csherborn0 | 80 | Feb |
| llorenzetti1 | 72 | Feb |
| thuddlestone2 | 63 | Feb |
| tleseka | 69 | Feb |
| csherborn0 | 92 | Apr |
| llorenzetti1 | 83 | Apr |
| thuddlestone2 | 74 | Apr |
| tleseka | 66 | Apr |
Here is an example of my data set. I want to be able to see trends if that is possible on Power Bi.
Seeing significant changes from month to month.
Based on my understanding I have created a calculated column that I think works for this case,
What this measure will be doing is highlighting the cells which have an increase in data consumption greater that a particular value that we can set inside the calculated column.
The measure and the working screenshot are attached below.
Conditonal Formatting =
Var lim = 10
Var usage = sum('Table'[Data usage (GBs)])-CALCULATE(sum('Table'[Data usage (GBs)]),filter('Table',earlier('Table'[Month])< max('Table'[Month])))
return if(usage>lim,"Red","Green")
Few things to note:
- Use the measure in the conditional formatting section of the table and select field formatting instead of gradient formatting.
- Make sure the month column's data type is the date and data usage is in the whole numbers.
- Use any color you want in the if condition(Hex codes will also work).
- Update the limit variable as you desire
- Also, note that if there are no values for a user in the last month the last data usage available for that user will be selected here. In this case, there are data for the month of March so April will be compared with Feb, Let me know if you need to change this logic and considered the march data as 0 and calculate the colors.
If you found this works as a solution for you please mark it as a solution.
Thanks and Regards,
Atma.
- Dhacd4 years agoResolver III
Update: Read wherever I have mentioned "measure" as "calculated column".
- Blue2k4 years agoRegular Visitor
So I am confused on why those are read.
i am trying to see significant changes from month to month.
- Dhacd4 years agoResolver III
I believe you want to find out the difference in usage between the current month and the previous month. In that case, use the below code as a calculated column, It might be working for you.
If this post helps, then please consider accepting it as the solution to help the other members find it more quickly.
Thanks and regards,
Atma.