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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
andreapalomino1
New Member

How to replace empty cells in matrix with another value?

Grettings,

 

I'm trying to fill this empty cells on this table with the value "100%". I've already applied "ISBLANK" and "+0" at the end of the formula. Is there any other way to fill these cells? 

 

 picturee.jpeg

 

The values  "%" showed  are a  calcutated column of two measures.

 

 

6 REPLIES 6
v-yangliu-msft
Community Support
Community Support

Hi  @andreapalomino1 ,

According to your screenshot:

Summarzie generates a table data, it is impossible to generate a single value.

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

v-yangliu-msft
Community Support
Community Support

Hi  @andreapalomino1 ,

I created some data:

vyangliumsft_0-1639453874534.png

Here are the steps you can follow:

1. Create calculated table.

Table2 =
DISTINCT('Table'[Class])

vyangliumsft_1-1639453874535.png

2. Create a relationship between the two tables.

vyangliumsft_2-1639453874537.png

3. Create measure.

Measure 2 =
IF(
    [Measure] = BLANK(),1,[Measure])

4. Result:

vyangliumsft_3-1639453874542.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Hi Liu, 

 

When I tried to apply it, it shows the error "A single value for column '%' for table DB_Disponibilidad cannot be determinated.

 

This is the formula for the column %. 'If function' were quoted just for try another way but it's the main formula.

Screen Shot 2021-12-14 at 16.22.29.png

sokg
Solution Supplier
Solution Supplier

if(isblank(yourmeasure),1,youmeasure)

 

Hopefully this is what you are looking for!

Nothing wrong with that measure - it's exactly what I've just done in a demo file.

 

Slightly confused by "The values  "%" showed  are a  calcutated column of two measures." Can you elaborate as I think issue will be how other things are being combined.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
bcdobbs
Super User
Super User

Can you post the measures?



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors