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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
YURISIL23
Regular Visitor

Virtual table

hello,

I have this code made via virtual table that is bringing me a correct total result, however, line by line the result is incorrect.

Test in Dax Studio with the expected result:

YURISIL23_0-1694100300312.png


When I change the expression after the RETURN to return the sum and insert this measure in the visual table, I have a correct total but the row-by-row result is incorrect:

YURISIL23_2-1694100657971.png


Code used:

YURISIL23_3-1694100746240.png


Note that in the column on the side the result is as expected, as this measure is the sum of the same calculations that I did in the virtual table, however, I executed it in a physical table with calculated columns, basically I created the calculated columns inside the SPREADSHEET table and created the measure Current sum curve:

YURISIL23_4-1694101003093.png

 

Column 1:            

YURISIL23_5-1694101302421.png          

Column 2:

YURISIL23_6-1694101388722.png

 

 

Measurement:

 

YURISIL23_7-1694101445111.png


Can anyone help me understand why this virtual table of mine is bringing the result row by row incorrectly when I add it to a visual?



1 REPLY 1
AmiraBedh
Super User
Super User

Can you share your pbix file instead of the images ?


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.