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

Line chart it is not show Endofmonth point

1.PNG2.PNG

1 ACCEPTED SOLUTION
shankar_234555
Regular Visitor

hi @Anonymous I got my solution by myself Thanks for attention 

View solution in original post

5 REPLIES 5
shankar_234555
Regular Visitor

hi @Anonymous I got my solution by myself Thanks for attention 

shankar_234555
Regular Visitor

@Anonymous  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
Anonymous
Not applicable

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. 

Anonymous
Not applicable

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
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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.