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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
zelira
Frequent Visitor

Help with projection

Good morning friends, it's a pretty simple problem but I've been racking my brain over it for a while and haven't had any results.

So, the idea of ​​the spreadsheet is that we have a column with results, for the days that I have results (which appear as the "SomadaReceita"), and on the days that I don't have results (in the same column), the projection is printed.  The search is done in lookupvalue, where it searches the comparativo table for the s&a projection, and returns the result according to the date in dataproj. Briefly explaining the dataproj, it is in my native language but it is the ID of the day, if it is the first Monday of the month it prints 1 MONDAY, if it is the first Tuesday it prints 1 TUESDAY, and so on for all days and all their occurrences in the month.

Having explained the spreadsheet, the problem that occurs is that I have to create this column with results for several products, and this ends up generating a circular relationship that I cannot solve nor do I have a different idea of ​​how to layout this data, can you help me?

The code im using for get the results of projection

Comparando =

VAR SomadaReceita = [S&A_SomadaReceita]
VAR ProjComparativo = LOOKUPVALUE(comparativo[proj_s&a], comparativo[COMPARATIVO], RELATED('Calendário'[COMPARATIVO]))
RETURN
IF(
SomadaReceita <> 0,
SomadaReceita,
(ProjComparativo * [S&A_Desvio])*-1
)

The "RELATED" function leaves the table with a circular relationship, if I could remove this function and add another one, which would allow me to replicate the same code with other projections, since I have other products besides S&A (like EP, that you can see on print) it would be perfect.

 

zelira_0-1702558168444.png

zelira_1-1702558190140.png

zelira_2-1702558201904.png

 

 



2 REPLIES 2
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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