Forum Discussion
Format numbers in MATRIX
- 6 years ago
Hi Anonymous ,
Please refer to my .pbix file.
1. “I need only totals as totals of Actuals”
For this requirement, you can create a measure like this.
Measure = VAR x = SWITCH( SELECTEDVALUE(Sales[CountryRegion]), "dd", FORMAT( SUM(Sales[Sale 2014]), "Percent" ), FORMAT( SUM(Sales[Sale 2014]), "#, 0.00") ) VAR y = CALCULATE( SUM(Sales[Sale 2014]), FILTER( ALL(Sales), Sales[CountryRegion] = MAX(Sales[CountryRegion]) && Sales[Month] = "December") ) RETURN IF( HASONEFILTER(Sales[Month]), x,y )2. Show the border of "Variance"
This requirement is currently not possible, but you can mark ‘Variance’ in other ways.
Firsr, create a measure like this.
Conditional format = IF( MAX(Sales[Month]) = "January", "Green" )Second, add the measure to the 'conditional formatting' label.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HI Fowmy
This is the best I can provide:
My source Data
My required output
This is what I've done in Power BI
My Measure value2 has the formula you mentioned:
I dont need the totals in Propert, Cash , DSG and Long-Term. Also, is there a way I can highlight the borders of Variance alone as shown in the required output?
ara
Anonymous
Try this measure:
Measure =
SWITCH(
SELECTEDVALUE(DATA[Invest]),
"FUM", FORMAT( SUM(DATA[m$]), "Currency"),
FORMAT( SUM(DATA[m$]), "Percent")
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
- Anonymous6 years agoNot applicable
HI Fowmy
Using the measure, the total istill calculates total of everything. I need only totals as totals of Actuals
As per my future state diagram
My grand totals are 8.0, 99.4 .. But in the screenshot you had provided, it calculates total of everything.
ara
- Anonymous6 years agoNot applicable
When I used the formula you had mentioned, I still get values in Cash, DSG and Long-Term
- v-lionel-msft6 years agoCommunity Support
Hi Anonymous ,
Please refer to my .pbix file.
1. “I need only totals as totals of Actuals”
For this requirement, you can create a measure like this.
Measure = VAR x = SWITCH( SELECTEDVALUE(Sales[CountryRegion]), "dd", FORMAT( SUM(Sales[Sale 2014]), "Percent" ), FORMAT( SUM(Sales[Sale 2014]), "#, 0.00") ) VAR y = CALCULATE( SUM(Sales[Sale 2014]), FILTER( ALL(Sales), Sales[CountryRegion] = MAX(Sales[CountryRegion]) && Sales[Month] = "December") ) RETURN IF( HASONEFILTER(Sales[Month]), x,y )2. Show the border of "Variance"
This requirement is currently not possible, but you can mark ‘Variance’ in other ways.
Firsr, create a measure like this.
Conditional format = IF( MAX(Sales[Month]) = "January", "Green" )Second, add the measure to the 'conditional formatting' label.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-lionel-msft6 years agoCommunity Support
Hi Anonymous ,
Has your problem been solved?
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.