Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have data that I am showing both issues when numbers are over a certain threshhold - to correct those issues but I also want to show when the numbers are below the value and are able to handle more in those classes - so i can show when a class is in violation and when it is not but keeping them separate so I can use conditional formating to distinguish it - I could just use the same column and create a background conditional format to show negative and positive but I cannot create the negative numbers
Class total | Total composition factor (max 3) | Max size based on comp factor | Excess of size | Excess of composition |
|
26 | 5 | 26 | 0 | 2 |
|
27 | 5 | 26 | 1 | 2 |
|
24 | 3 | 26 | 0 | 0 | Would like a column that says 2 spaces available for size and 0 for composition |
25 | 2 | 26 | 0 | 0 | Would like it to say 1 space for size and one for composition in a separate column |
Solved! Go to Solution.
Hi @channah ,
I assume that the table you show is the data as you have setup on your model correct?
I create the two following measures:
Excess/Space for composition = SUM(Composition[Total Compositon factor]) - 3 Excess/Space for size = SUM(Composition[Class Total])- SUM(Composition[Max sized compositoon])
Now you can use the condittional formatting option on your table.
Not really sure if your question was that you couldn't create the negatives or you didn't want to create the negatives.
If you want to show 4 columns you must do the 4 measures below:
Excess compostion = var composition_size = SUM(Composition[Total Compositon factor]) - 3 Return IF(composition_size>0; ABS(composition_size);0) Excess size = var size_variation = SUM(Composition[Class Total])- SUM(Composition[Max sized compositoon]) return IF(size_variation >0 ; ABS(size_variation);0) Space compostion = var composition_size = SUM(Composition[Total Compositon factor]) - 3 Return IF(composition_size<0; ABS(composition_size);0) space size = var size_variation = SUM(Composition[Class Total])- SUM(Composition[Max sized compositoon]) return IF(size_variation <0 ; ABS(size_variation);0)
See attach PBIX file.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @channah ,
I assume that the table you show is the data as you have setup on your model correct?
I create the two following measures:
Excess/Space for composition = SUM(Composition[Total Compositon factor]) - 3 Excess/Space for size = SUM(Composition[Class Total])- SUM(Composition[Max sized compositoon])
Now you can use the condittional formatting option on your table.
Not really sure if your question was that you couldn't create the negatives or you didn't want to create the negatives.
If you want to show 4 columns you must do the 4 measures below:
Excess compostion = var composition_size = SUM(Composition[Total Compositon factor]) - 3 Return IF(composition_size>0; ABS(composition_size);0) Excess size = var size_variation = SUM(Composition[Class Total])- SUM(Composition[Max sized compositoon]) return IF(size_variation >0 ; ABS(size_variation);0) Space compostion = var composition_size = SUM(Composition[Total Compositon factor]) - 3 Return IF(composition_size<0; ABS(composition_size);0) space size = var size_variation = SUM(Composition[Class Total])- SUM(Composition[Max sized compositoon]) return IF(size_variation <0 ; ABS(size_variation);0)
See attach PBIX file.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks - yes basically i want to show and then use conditional formatting to make it noticeable, that if there is no issue with class size or composition - how many spaces are available - right now if there are no issues it shows a 0 - I wouldnt mind making 4 columns since newby users are using the tool and we want to be able to see what classrooms have space at a quick glance
however when I use the measures and add them to my visual - all of the students who have a 0 their data all disappears ???
i already have the size and composition measures
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsJoin the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
91 | |
87 | |
80 | |
69 | |
69 |
User | Count |
---|---|
226 | |
129 | |
119 | |
83 | |
77 |