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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
AvPowerBI
Post Patron
Post Patron

Matrix not showing the Value on the column but Table is

Hi,

 

For some reason the Value on my Matrix Visualization is showing as BLANK but it meets the DAX condition for Availabilty % when I put this on a Table

 

Matrix

AvPowerBI_1-1608244226927.png

 

Table

 
 

AvPowerBI_0-1608244698676.png

 

 

The table shows the field IsActivity = Y

thats means then it should show the Availabilty % as 100% as the caculation for this is =1-(Unavailable Mins DIVIDED BY Paid Time Mins)

This is my DAX Calculation

 

Availability % =
VAR _Start = 1
VAR _First = CALCULATE(SUM(EngineerCalendar[Unavailable Mins]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both))
VAR _Second = CALCULATE(SUM(EngineerCalendar[Paid Time Mins]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both))
VAR _Final = _Start-(DIVIDE(_First,_Second))
VAR _IsActivity = IF( CALCULATE(SUM(EngineerCalendar[Avail Day Flag]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both)) =1 || CALCULATE(SUM(EngineerCalendar[Worked Day Flag]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both)) =1,"Y",
IF( CALCULATE(SUM(EngineerCalendar[Unavailable Mins]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both))>0,"Y","N"))
VAR _Default = BLANK()
RETURN
IF(
_IsActivity="Y",
_Final,
_Default
)
2 REPLIES 2
amitchandak
Super User
Super User

@AvPowerBI , this is active is no more in row context that is why , it causing it

_IsActivity

Either use sumx as values or summarize any try

RETURN
sumx(Values(Table[engineer ID]),IF(_IsActivity="Y",_Final,_Default)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

Thanks for your reply, I have done your  suggeston, creting another DAX Measure but still showing as blan, any other suggestions?

 

Matrix

AvPowerBI_2-1608283723553.png

Table

AvPowerBI_3-1608283768752.png

 

 

 

 

 

 

Availability 2 % =
VAR _Start = 1
VAR _First = CALCULATE(SUM(EngineerCalendar[Unavailable Mins]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both))
VAR _Second = CALCULATE(SUM(EngineerCalendar[Paid Time Mins]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both))
VAR _Final = _Start-(DIVIDE(_First,_Second))
VAR _IsActivity = IF( CALCULATE(SUM(EngineerCalendar[Avail Day Flag]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both)) =1 || CALCULATE(SUM(EngineerCalendar[Worked Day Flag]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both)) =1,"Y",
IF( CALCULATE(SUM(EngineerCalendar[Unavailable Mins]),CROSSFILTER(EngineerCalendar[CalendarKey], Visits[CalendarKey], Both))>0,"Y","N"))
VAR _Default = BLANK()
RETURN sumx(Values(EngineerCalendar[Engineer ID]),IF(_IsActivity="Y",_Final,_Default)
)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.