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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
DSPVarma
Frequent Visitor

Getting blank value when dividing two measures in the matrix visual

Hi All,

Please help me on the following;

I have 2 measures:

  1. The first measure name is ‘Total Difference in minutes’ which is calculated by taking out the difference between the End date and the starting date (these 2 dates and times are customized dates that the user can enter).
    First measure.JPG

  2. The Second measure name is ‘Avg mins per booking’ which is calculated by dividing
    43200/Booking Count in the matrix visual, where 43200 is fixed.

    Second measure.JPG

The above 2 measures are showing correctly.


But when I am writing a following measure in matrix visual, I am getting blank value.

       Projected Bookings = DIVIDE ([Total Difference in Minutes],[Avg mins per Booking])
I am actually expecting the following result which I did in Excel 

Result.png

Expected result.png





 

1 ACCEPTED SOLUTION

Hi @DSPVarma 

 

Thanks for the reply from @TomMartens , please allow me to provide another insight:

Copy the Slicer from Page FundOpt and Paste in page Fund workings:

Then select Sync:

vzhengdxumsft_0-1715755417464.png

View > Sync slicers:

vzhengdxumsft_3-1715755713723.png

Select the slicers and hide them in Page Fund workings:

vzhengdxumsft_1-1715755617296.png

The result is as follow:

vzhengdxumsft_2-1715755677856.png

 

Best Regards

Zhengdong Xu
If this 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
DSPVarma
Frequent Visitor

I tried all the methods but was unable to tackle this one. Can somebody help me out with this one?

 

Hi @DSPVarma 

 

Thanks for the reply from @TomMartens , please allow me to provide another insight:

Copy the Slicer from Page FundOpt and Paste in page Fund workings:

Then select Sync:

vzhengdxumsft_0-1715755417464.png

View > Sync slicers:

vzhengdxumsft_3-1715755713723.png

Select the slicers and hide them in Page Fund workings:

vzhengdxumsft_1-1715755617296.png

The result is as follow:

vzhengdxumsft_2-1715755677856.png

 

Best Regards

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

@v-zhengdxu-msft Can you please help me with a measure to get the cumulative total for the "Projected fund required" column after sorting the "Sum of Net Contribution" column from highest to lowest. Many thanks for considering my request.

@v-zhengdxu-msft Thank you very much. It worked for me with your solution.
@TomMartens Thanks a lot

 

TomMartens
Super User
Super User

Hey @DSPVarma ,

 

it's tough for me to provide guidance because I miss some information. In your listing number one and two you mentioned two measures:

  • Total Difference in minutes
  • Avg mins per bookin

All your screenshots do not show that "Total Difference in minutes' is properly working.

 

Consider creating a pbix file that contains sample data but still reflects your semantic model (tables, relationships, measures, and calculated columns). Upload the pbix to OneDrive, Google Drive, or dropbox and share the link here in the public chat. Make sure that the file can be downloaded without authentication. If you are using a spreadsheet to import the the sample data from instead of the manual input method, share the spreadsheet as well.

 

Do not forget to explain the expected result based on the sample data you provide.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hi @TomMartens 

Please find the google drive link as requested.

https://drive.google.com/drive/folders/1RORD2xai1rvH-No8-xoKZ1qi-cA9AeB4?usp=sharing

 

My requirement is filled in yellow color in the excel sheets.
 I want to replicate the same in the Power BI Matrix Visual.
In the Sample I have taken only one dimension (PC Column), but there are few others as well

Hey @DSPVarma ,

 

the blank values are due to the calculation of the measure
[Total Difference in Minutes] that is based on the measures
[Difference] and [Difference_Hours],
as soon a Start Date and End Date are selected, see the below screenshot taken from the report page "Fund workings". I added a slicer for the PC column only for simplifying the report.

TomMartens_0-1715495828536.png

Simple as that, because all the tables are not related you have to find a solution to provide at least a valid "Difference", that is not 0, what happens if nothing is selected becasue the End-Date and the Start-Date are the same.

 

Hopefully, this provides an idea of how to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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