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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Thulasiraman
Helper II
Helper II

Dim table not to filter

Hi

I have the following issue

I have a dim table containing a column of job numbers (1,2,3,4,5,....so on)

I have a fact table containing sale value against the job numbers.

Fact table contain only those job values against which sale invoice raised.

Both the table relationship created by job no. 

I want a matrix visual which displays all job numbers from dim table

whether sale value is found in fact table or not.  If sale value is raised,

it should show sale value otherwise blank or o.

 

I used CALCULATE(SUM('facttable'[sale amt}), ALL('dim table[job no.])

 

it gives sum total of sale value of all job numbers.

 

Pls hlep

2 ACCEPTED SOLUTIONS
selimovd
Super User
Super User

Hey @Thulasiraman ,

 

you don't have to struggle with a DAX measure. In general Power BI is hiding all rows that are blank.

But you can show them by going to the field options and selecting "Show items with no data":

selimovd_0-1656785292494.png

 

That should solve your problem.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

View solution in original post

Hey @Thulasiraman ,

 

I didn't see your reply as you didn't mention me with an @. Then I won't get notified.

Sure, you can also return a 0 with a DAX measure or a blank string, then the row will always be shown:

SUM to show in every line = 
VAR vSum = SUM( 'myTable'[myColumn] )
RETURN
IF( vSum = BLANK(), "", vSum )

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

View solution in original post

3 REPLIES 3
Thulasiraman
Helper II
Helper II

Thank u so much Denis. I was strugling with dax without knowing this simple technique.

However is there any way for a dax solution, since I would require only the job numbers which is not billed.

Now I have to filter the blanks to get it. 

Thanks in advance.

Best regards.

Hey @Thulasiraman ,

 

I didn't see your reply as you didn't mention me with an @. Then I won't get notified.

Sure, you can also return a 0 with a DAX measure or a blank string, then the row will always be shown:

SUM to show in every line = 
VAR vSum = SUM( 'myTable'[myColumn] )
RETURN
IF( vSum = BLANK(), "", vSum )

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

selimovd
Super User
Super User

Hey @Thulasiraman ,

 

you don't have to struggle with a DAX measure. In general Power BI is hiding all rows that are blank.

But you can show them by going to the field options and selecting "Show items with no data":

selimovd_0-1656785292494.png

 

That should solve your problem.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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