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
shankar_234555
Regular Visitor

Line chart it is not show Endofmonth point

1.PNG2.PNG

1 ACCEPTED SOLUTION
shankar_234555
Regular Visitor

hi @v-tangjie-msft I got my solution by myself Thanks for attention 

View solution in original post

5 REPLIES 5
shankar_234555
Regular Visitor

hi @v-tangjie-msft I got my solution by myself Thanks for attention 

shankar_234555
Regular Visitor

@v-tangjie-msft  I got it but i want to return only a single value

i have attacted a original pbix file which returning a single value 

 https://drive.google.com/file/d/14BDjnJNBd824p8NEuo4UjIMAHO3V2U-X/view?usp=sharing

 

Capture.PNG




shankar_234555
Regular Visitor

Hi @shankar_234555 ,

 

Based on the logic of your measure, your output is correct.

When the slicer selects 2021, the variable last_val outputs the table's maximum date, 

vtangjiemsft_0-1703572843236.pngvtangjiemsft_1-1703572897752.png

 

The maximum date in the table is 2021-12-1, when the measure is output correctly.

For the [result] variable, his logic is: when End of Month and last_val are equal, output [008. 001. Receivables turnover (days) v2], otherwise null, but as we can see from the figure below, the End of Month column and 2021-12-1 are not equal, so the output is null.

 

If you want the values to be displayed in the chart, you can change the measure to

009. 01 Ending point (value) = 

var last_val = CALCULATE(
                 LASTDATE('008: FCT_table: Financial KPIs'[Period]),
                 ALLSELECTED('DIM: Date')
)

var curr_item_date = SELECTEDVALUE('DIM: Date'[End of Month])

var Result =
        SWITCH(
            TRUE(),
            curr_item_date = last_val,[008. 001. Receivables turnover (days) v2],
           0
        )
return
   Result

vtangjiemsft_2-1703573374432.png

 

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

v-tangjie-msft
Community Support
Community Support

Hi @shankar_234555 ,

 

I'm sorry I don't quite understand your logic here, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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.