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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

DAX: Measure showing as blank in card but accurate in table

Hello, 

 

Trying to learn why this Measure "...Goal Selected" shows blank in card visual for me, when I want it to match what is in my table viz. My other measure works as expected. 

 

Kevthebandit_1-1619207541310.png

 

Net Operating Income Sum Total Goal Selected =
VAR Numerator =
 SUMX( 'Net Operating Income',
        CALCULATE('Net Operating Income'[Net Operating Income Cumulative Goal]
   , ALLSELECTED(Dates)) )

VAR FiscalPeriod = CALCULATE(MAX(Dates[Fiscal Month Number])
, ALLSELECTED( 'Dates')
, NOT ISBLANK('Net Operating Income'[Net Operating Income]))

RETURN
Numerator * FiscalPeriod
 
 
Net Operating Income Sum Total Selected = /* This measure works as I want it to and displays in card */ 
CALCULATE(SUM('Net Operating Income'[Net Operating Income]), ALLSELECTED(Dates))
 
 
Any ideas or posting that could help? Thanks!

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I figured out a solution that will work for now! Thank you.

 

Net Operating Income Sum Total Goal Selected =
VAR Numerator =
--SUMX( 'Net Operating Income', CALCULATE('Net Operating Income'[Net Operating
--Income Cumulative Goal], ALLSELECTED(Dates)) )

MIN( 'Net Operating Income Goal'[Net Operating Income] ) / 12

VAR FiscalPeriod = CALCULATE(MAX(Dates[Fiscal Month Number])
, ALLSELECTED( 'Dates')
, NOT ISBLANK('Net Operating Income'[Net Operating Income]))

VAR Result = Numerator * FiscalPeriod

RETURN
Result
 
Kevthebandit_0-1619397060582.png

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I figured out a solution that will work for now! Thank you.

 

Net Operating Income Sum Total Goal Selected =
VAR Numerator =
--SUMX( 'Net Operating Income', CALCULATE('Net Operating Income'[Net Operating
--Income Cumulative Goal], ALLSELECTED(Dates)) )

MIN( 'Net Operating Income Goal'[Net Operating Income] ) / 12

VAR FiscalPeriod = CALCULATE(MAX(Dates[Fiscal Month Number])
, ALLSELECTED( 'Dates')
, NOT ISBLANK('Net Operating Income'[Net Operating Income]))

VAR Result = Numerator * FiscalPeriod

RETURN
Result
 
Kevthebandit_0-1619397060582.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.