Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have two date columns. To calculate the number of days difference between them, I just created a measure =[Date1]-[Date2]. But the resullts are erroneous. I also created a column using the same formula. The numbers with Measure and Calculated column are equal.
When I exported the data out to excel and took the difference, the results are correct. some of the Power BI numbers are off by exact muiples like 2x, 3x. Not sure why. I want the numbers to indicate +ve or -ve difference.
Please see the screenshot of the table here: https://imgur.com/a/LHs8H
I cant figure out why. Can someone please help.
Solved! Go to Solution.
Can you share the exact DAX expression you used to build the measure and calculated column expressions? How did you import the data? Can you verify that the dates are accurately recognized during import? Finally, how are you verifying the difference in the data-view or a matrix/table visual? If it is matrix/table visual and using a calculated column, very likely it will be aggregated using a SUM aggregation, which could explain why you are seeing 2X, 3X etc results.
Can you share the exact DAX expression you used to build the measure and calculated column expressions? How did you import the data? Can you verify that the dates are accurately recognized during import? Finally, how are you verifying the difference in the data-view or a matrix/table visual? If it is matrix/table visual and using a calculated column, very likely it will be aggregated using a SUM aggregation, which could explain why you are seeing 2X, 3X etc results.
Bingo - the results were being aggregated when I dropped it in the table. Thanks!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
217 | |
89 | |
82 | |
66 | |
57 |