Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
Below is a high-level overview of my issue.
I have three tables:
I'm using a matrix visual with a 5-level hierarchy (e.g., Level 1 → Level 2 →Level 3→Level 4→Level 5→ FS Account). Some levels contains statistical accounts, which always start with "S" (e.g., S1010).
Level 1 Level 2 FS Account Value
Fixed Income | Gov Bonds | 1010 - Treasury Bonds | 100,000,000 |
S1010 - Statistical Adjustment | 5,000,000 | ||
S1020 - Statistical Offset | 3,000,000 | ||
Subtotal Level 2 | 100,000,000 ← should exclude S1010 and S1020 | ||
Gov Bonds 2 | 1011 - Treasury Bonds | 100,000,000 | |
S1011 - Statistical Adjustment | 5,000,000 | ||
S1021 - Statistical Offset | 3,000,000 | ||
Subtotal Level 2 | 100,000,000 ← should exclude S1010 and S1020 | ||
Subtotal Level 1 | 200,000,000 |
Could you please let me know if it possible to achive that? I know i can exclude the statistical accounts but then that value are not visible.
Thank you!
Hi @PawelK0296 ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please accept it as a solution so other members can easily find it.
Thank You
Hi @PawelK0296 ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please accept it as a solution so other members can easily find it.
Thank You
Hi @PawelK0296 ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please accept it as a solution so other members can easily find it.
Thank You
Hi @PawelK0296 please try this measure
Hi PawelK0296,
As per your original post, assuming you have value column is TableC[Value] and FS Account is in TableC[FS Account]:
Adjusted Value =
VAR IsTotal = HASONEVALUE('TableC'[FS Account]) = FALSE
RETURN
IF(
IsTotal,
CALCULATE(
SUM('TableC'[Value]),
NOT STARTSWITH('TableC'[FS Account], "S")
),
SUM('TableC'[Value])
)
Above DAX measure does below:
1.Detects if the current row is a total/subtotal.
2.Excludes statistical accounts (those starting with "S") from totals.
3.Includes all accounts in row-level values.
Please let me know if you have further questions.
If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too. And if you found it useful, a quick "Kudos" is always appreciated, thanks!
Best Regards,
Maruthi
LinkedIn - http://www.linkedin.com/in/maruthi-siva-prasad/
X - Maruthi Siva Prasad - (@MaruthiSP) / X
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |