Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

how to display the numerator and denominator value only when we drill down in the matrix visual

Hi All,

how to display the numerator and denominator value only when we drill down in the matrix visual and not to display All time??

Displayyear and ratio
Current Ratio 1.21
   Current Assets1214 
   Current Liabilities1003 
Debt-Equity Ratio 1.42
   Borrowings383 
   Total Equity269 




calculation i have created below
Billing Axis Table =
ADDCOLUMNS(
GENERATESERIES(1, 8),
"SortID", [Value],
"Display", SWITCH([Value], 1, "Current Ratio", 2, "Debt-Equity Ratio", 3, "Return on Equity Ratio (%)", 4, "Inventory turnover ratio", 5, "Trade Receivables turnover ratio", 6, "Trade Payables turnover ratio", 7, "Net capital turnover ratio", 8, "Net profit ratio (%)"),
"Numerator", SWITCH([Value], 1, "Current Assets", 2, "Borrowings", 3, "PAT", 4, "COGS", 5, "Revenue from Operations", 6, "Purchases", 7, "Revenue from Operations", 8, "PAT"),
"Denominator", SWITCH([Value], 1, "Current Liabilities", 2, "Total Equity", 3, "Average Shareholders equity [(Opening + Closing)/2]", 4, "Average Inventories [(Opening + Closing)/2]", 5, "Average Receivables [(Opening + Closing)/2]", 6, "Average Payables [(Opening + Closing)/2]", 7, "Working Capital (Current Assets - Current Liabilities)", 8, "Revenue from Operations"
))

measures --

Numerator =
IF(
    HASONEVALUE('Master_Year'[Year]), // Replace with your actual date hierarchy column
    VAR SelectedDisplay = SELECTEDVALUE('Billing Axis Table'[Numerator])
    VAR assets = [Current Assets]
    VAR Borrowing = [Borrowings]
    VAR PAT1 = [PAT]
    VAR COGS = [COGS]
    VAR RevenuefromOperations1 = [Revenue from Operations]
    VAR Purchases = [Purchases]
    VAR RevenuefromOperations2 = [Revenue from Operations]
    VAR PAT2 = [PAT]
    RETURN
        SWITCH (
            TRUE(),
            SelectedDisplay = "Current Assets", assets,
            SelectedDisplay = "Borrowings", Borrowing,
            SelectedDisplay = "PAT", PAT1,
            SelectedDisplay = "COGS", COGS,
            SelectedDisplay = "Revenue from Operations", RevenuefromOperations1,
            SelectedDisplay = "Purchases", Purchases,
            SelectedDisplay = "Revenue from Operations", RevenuefromOperations2,
            SelectedDisplay = "PAT", PAT2
        ),
    BLANK() // Return blank for "All" time period
)

Denominator =
IF(
    HASONEVALUE(Master_Year[Year]),
    VAR SelectedDisplay = SELECTEDVALUE('Billing Axis Table'[Denominator])
    VAR Liabilities = [Current Liabilities]
    VAR TotalEquity = [Total Equity]
    VAR AverageShareholdersequity = [Average_Shareholders_Equity]
    VAR AverageInventories = [Average_Inventories]
    VAR AverageReceivables = [Average_Receivables]
    VAR AveragePayables = [Average_Payables]
    VAR WorkingCapital = [Working_capital]
    VAR RevenuefromOperations = [Revenue from Operations]
    RETURN
        SWITCH (
            TRUE(),
            SelectedDisplay = "Current Liabilities", Liabilities,
            SelectedDisplay = "Total Equity", TotalEquity,
            SelectedDisplay = "Average Shareholders equity [(Opening + Closing)/2]", AverageShareholdersequity,
            SelectedDisplay = "Average Inventories [(Opening + Closing)/2]", AverageInventories,
            SelectedDisplay = "Average Receivables [(Opening + Closing)/2]", AverageReceivables,
            SelectedDisplay = "Average Payables [(Opening + Closing)/2]", AveragePayables,
            SelectedDisplay = "Working Capital (Current Assets - Current Liabilities)", WorkingCapital,
            SelectedDisplay = "Revenue from Operations", RevenuefromOperations
        ),
    BLANK() // Return blank for "All" time period
)

Any help is greatly appreciated.

Thanks!!



@amitchandak @mwegener please suggest

1 REPLY 1
lbendlin
Super User
Super User

Familiarize yourself with ISINSCOPE

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors