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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

Problem with Dax Data/Measures Model - Total Accumulated Valuation x Value (depending on period)

Good morning, everybody.

I'm a little new in the community and with Power BI. I hope you can help me solve this inconvenience to which I have given many turns and have not been able to solve it.

The model attempts to relate mainly 2 fact tables: a table of investment movements (to which other tables with different dimensions are added - instrument, company, type of movement, etc.-) and on the other hand a price table of the instruments by period (year, month). The idea is to record the movements of an investment portfolio, making a total cumulative period (this I could do without problem) of the "stock" of each investment, but I have drawbacks when it comes to multiplying that total accumulated by the value of the other fact table (in order to put together different results by period), since it has different graininess compared to the first (in the table of movements , it is crucial to see the investments for each of the dimensions that the model has, while the price table is only related to the instrument and the period). The problem arises when the movement table has no data in a certain period (but if there is a cumulative stock) and there is a price to value that stock. The model seems to take only the quote when there is a movement in the period. Another problem I see is that when the filter is applied per company (required dimension) this causes drawbacks to relate the quote data (which does not have the company dimension).

I've tried putting together a key, putting together a combination of the movements+quotes tables and I haven't achieved positive results. For example, I detail the table where there is a stock for "Balanz Class B shares" with the company filter "Terminal Zarate" and a price for the period, but the model does not take it:

leandro_salas24_0-1611877395040.png

This is the entry table, where the price for that period is displayed (but it does not have company dimensions or transaction data, only the quote):

leandro_salas24_6-1611877929362.png

The "Current Valuation" measure is as follows:

leandro_salas24_1-1611877475654.png

leandro_salas24_2-1611877493092.png

leandro_salas24_3-1611877505846.png

I detail the model:

leandro_salas24_4-1611877522300.png

In this model, the entry table has combined the quote by key (nameFCI+year+month). As you can see, in the entries table, there are periods where the key has no entries, but if quoted:

leandro_salas24_5-1611877578912.png

I can upload the pbix file to you.

Thank you very much already!

Best regards. -

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@leandro_salas24,

Will you be able to upload the pbix file or provide a link?

Thank you.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@leandro_salas24,

Will you be able to upload the pbix file or provide a link?

Thank you.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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