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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Madhu155
Regular Visitor

Issue with Displaying All Days as Values from Calendar Table Using DAX Measure

Hi Everyone,

I am facing an issue with the "Day" column from the calendar table. When using the following measure, only the day values are displayed from the column which as values from the fact table.

However, I want all-day values to be shown from the column and I want the formula to show "zero" or leave the cell blank if there is no value for that day.

Below is the measure I am using:

DAX Formula:

 
=DISTINCTCOUNT('_Orgination - Final_'[LoanId])

Note 1: There is a many-to-one relationship between the fact table and the calendar table, where the "many" side is the fact table and the "one" side is the calendar table.

Note 2: The "Days[Row Label]" is from the calendar table.

Note 3: I have tried several approaches but have not been able to achieve the desired result.

 

Madhu155_0-1732792230134.png

 

Madhu155_1-1732792248112.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the replies from Rupak_bi, FreemanZ and FarhanJeelani.

 

Hi @Madhu155 ,

 

If you want to display a value that has no data and does not need to be displayed as 0. You can select a visual. In the Values fields well, right-click the field and select Show items with no data from the menu.

The Show items with no data feature lets you include data rows and columns that don't contain measure data (blank measure values).

vlinhuizhmsft_0-1733105739344.png

 

Best Regards,
Zhu

 

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

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Thanks for the replies from Rupak_bi, FreemanZ and FarhanJeelani.

 

Hi @Madhu155 ,

 

If you want to display a value that has no data and does not need to be displayed as 0. You can select a visual. In the Values fields well, right-click the field and select Show items with no data from the menu.

The Show items with no data feature lets you include data rows and columns that don't contain measure data (blank measure values).

vlinhuizhmsft_0-1733105739344.png

 

Best Regards,
Zhu

 

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

Madhu155
Regular Visitor

@FarhanJeelani i was able to get 0 but I wanted blank, the formula below is not working, still it showing in aggregated format.  

Measure = 
IF(
    ISBLANK(CALCULATE(DISTINCTCOUNT('_Orgination - Final_'[LoanId]))),
    BLANK(),
    CALCULATE(DISTINCTCOUNT('_Orgination - Final_'[LoanId]))
)

Madhu155_0-1732862458030.png

 




 

Rupak_bi
Impactful Individual
Impactful Individual

Hi @Madhu155 ,

Just add Zero in your measure , it will work
=DISTINCTCOUNT('_Orgination - Final_'[LoanId])+0

Rupak_bi_0-1732869030925.pngRupak_bi_1-1732869042610.png

 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/
Madhu155
Regular Visitor

Thank you 

FreemanZ
Super User
Super User

hi @Madhu155 ,

 

try like:

measure = =DISTINCTCOUNT('_Orgination - Final_'[LoanId]) + 0

 

or feed the pivot table row with the day column from the calendar table.

Thank you 

FarhanJeelani
Super User
Super User

Hi @Madhu155,

To display all days from the calendar table and show a 0 (or blank) for days without data, you need to modify your measure to use a function that respects the full context of the calendar table. Here’s an updated DAX formula you can try:

Measure = 
CALCULATE(
    DISTINCTCOUNT('_Orgination - Final_'[LoanId]),
    CROSSFILTER('Calendar'[Date], '_Orgination - Final_'[Date], BOTH)
)
+ 0

If you want to display 0 explicitly or leave the cells blank, adjust the measure:

For 0:

Measure = 
IF(
    ISBLANK(CALCULATE(DISTINCTCOUNT('_Orgination - Final_'[LoanId]))),
    0,
    CALCULATE(DISTINCTCOUNT('_Orgination - Final_'[LoanId]))
)

For blank cells:

Measure = 
IF(
    ISBLANK(CALCULATE(DISTINCTCOUNT('_Orgination - Final_'[LoanId]))),
    BLANK(),
    CALCULATE(DISTINCTCOUNT('_Orgination - Final_'[LoanId]))
)

Key Steps:

  1. Ensure Your Calendar Table Has Full Dates: Verify that your calendar table includes all required days (e.g., a full range from January 1 to December 31).
  2. Check Relationships: Confirm the relationship between your calendar table and fact table is active and correctly configured.
  3. Use a Visual That Supports Missing Data: Use visuals like a table or matrix and ensure the "Show items with no data" option is enabled.

Let me know if this works for your scenario!

 

Please mark this as solution if it helps. Appreciate Kudos.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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