Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Team, Good Morning!!
I hope you're all doing well.
I have a table like below:
G/R | Jan-25 | Feb-25 | Mar-25 | Apr-25 | May-25 | Total |
Sales | 380955958.5 | 306713898.6 | 306383067.8 | 283803268.4 | 51632333.22 | 1329488527 |
MoM | ▲ 4% | ▼ -19% | ▼ 0% | ▼ -7% | ▼ -82% | ▼ -82% |
YoY | ▼ -6% | ▼ -3% | ▲ 3% | ▼ -2% | ▼ -81% | ▼ -16% |
In the above table total needs to adjust MoM total as "-"
Note: instead of ▼-82% i need to show as "-"
Finally i need output as below. Total column i just turnoned Column Subtotals.
Could you please guide me on how to approach this?
Thank you in advance!
Best regards,
Vannur Vali.
Solved! Go to Solution.
MoM_Display =
VAR _MoM = [MoM] -- your existing MoM calculation
RETURN
IF(
ISINSCOPE('Date'[MonthYear]), -- or the relevant column used on Columns in Matrix
_MoM,
BLANK() -- or return a custom text "-" with formatting
)
Thanks,
Pankaj Namekar | LinkedIn
If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.
Hello @DVannurVali,
Thank you for reaching out to the Microsoft Fabric Forum Community.
I have reproduced your scenario in Power BI, and I was able to achieve the expected output as per your requirements.
Output:
For your reference, I have attached the .pbix file containing the solution. You can review the measures, data model, and matrix’s visual setup to see how the expected output was achieved.
If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.
Hi @DVannurVali
You can use a conditional dynamic format string:
IF ( NOT ( ISINSCOPE ( Dates[Month and Year] ) ), "-", "#,0" )
MoM_Display =
VAR _MoM = [MoM] -- your existing MoM calculation
RETURN
IF(
ISINSCOPE('Date'[MonthYear]), -- or the relevant column used on Columns in Matrix
_MoM,
BLANK() -- or return a custom text "-" with formatting
)
Thanks,
Pankaj Namekar | LinkedIn
If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.
Dear @pankajnamekar25 ,
Thank you for your prompt response. It is working as expected.
Best regards,
Vannur Vali
User | Count |
---|---|
85 | |
78 | |
70 | |
49 | |
41 |
User | Count |
---|---|
111 | |
56 | |
50 | |
42 | |
40 |