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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
robson-andrade
New Member

Create report based on payment date

Dear all, good afternoon!

 

Could you please help me.

 

I have this view set up of a report, where these columns are already handled within Power Query, that is, I haven't needed to use DAX until now.

 

My question.

1st Point: In the filter above, the calendar is linked to the date of issue of the document

 

2nd Point: In this report I have the last payment column "E2_Baixa"

 

3rd Point: My calendar has it linked to the date of issue of the document and also the date of discharge (Payment)

 

Goal:

When filtering the year above, the system ignores the issue date and shows it in the report based on the payment date.

 

robsonandrade_0-1706279426372.png

 

 

robsonandrade_0-1706279288411.png

 

 

 

robsonandrade_3-1706278945251.png

 

robsonandrade_4-1706279060493.png

 

 

 

Can you help me.

 

Att.

 

Robson

1 REPLY 1
sevenhills
Super User
Super User

First and foremost I dont know spanish or the language of your posted images  .

 

I am assuming you are doing the role playing date dimension and want each visual to behave of the corresponding date of your choice. 

 

Say, you have one transaction table and has connected to date table to two columns. You want one table visual as to use one date column. other visual as to use other date column. Filter/slicer is the same for all. This is common scenario.

 

You need to create measures and code them using USERELATIONSHIP. 

 

Please check:   

https://dax.guide/userelationship/

https://www.sqlbi.com/articles/using-userelationship-in-dax/

 

Sample MDX, which uses delivery date (inactive relationship).

 

Delivery Amount =
CALCULATE (
    [Sales Amount],
    USERELATIONSHIP ( Sales[Delivery Date], 'Date'[Date] )
)

 

 Hope it helps!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.