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
unnipbi123
Helper II
Helper II

is it possible to show the column as blank at visual level based on some condition

Hello All,

 

i have a tricky situation here. i have created a below reports for sales rep to check from the seats added, how many seats are touched.

unnipbi123_1-1659615807993.png

 

is it possible to show the touched seats as blank if the total seats added in any month/quarter is negative? i dont want to show it as blank at the row level in my data. but only at the visual level, i need to show it as blank based on condition.

 

Thanks,

 

 

1 ACCEPTED SOLUTION
Keith_Fernandes
Advocate II
Advocate II

Here is my shot to this-

 

Data set-

Keith_Fernandes_0-1659617639839.png

 

Dax-

Seat count = IF(calculate(SUM(Sheet1[Seats]),Sheet1[Category]="Seats added")<0,IF(SELECTEDVALUE(Sheet1[Category])="Seats added",CALCULATE(sum(Sheet1[Seats]),Sheet1[Category]="Seats added"),BLANK()),sum(Sheet1[Seats]))
 
Final Matrix
Keith_Fernandes_1-1659617684986.png

Do mark it as a solution if this solves it.

 

Cheers

Keith Fernandes

 

 

View solution in original post

1 REPLY 1
Keith_Fernandes
Advocate II
Advocate II

Here is my shot to this-

 

Data set-

Keith_Fernandes_0-1659617639839.png

 

Dax-

Seat count = IF(calculate(SUM(Sheet1[Seats]),Sheet1[Category]="Seats added")<0,IF(SELECTEDVALUE(Sheet1[Category])="Seats added",CALCULATE(sum(Sheet1[Seats]),Sheet1[Category]="Seats added"),BLANK()),sum(Sheet1[Seats]))
 
Final Matrix
Keith_Fernandes_1-1659617684986.png

Do mark it as a solution if this solves it.

 

Cheers

Keith Fernandes

 

 

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.