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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Damian_C
New Member

Ocultar valores en grafico

Buen dia, tengo este grafico acumulado, quiero matener el campo "programa" (o sea que se muestre hasta fin de mes) pero quiero que el campo "real" se muestre hasta el dia de la fecha.

 

En power BI:

Damian_C_2-1645452720538.png

Asi quiero que quede (lo arme en Excel):

Damian_C_1-1645452701806.png

 

Alguno sabria como hacer?? Saludos

1 ACCEPTED SOLUTION
v-yetao1-msft
Community Support
Community Support

Hi @Damian_C 

In the first case, when the real value corresponding to your date is empty, you add [real] to the value, and the empty value is not displayed in the line chart.

Ailsamsft_0-1645694656471.pngAilsamsft_1-1645694656473.png

In the second case , if you want to specify that real only display data up to a certain date (although later dates also have data), you can create a calendar date table and measure to control.

(1)Create a calendar date table .

 

Calendar date = CALENDAR(DATE(2021,01,01),DATE(2021,02,28))

 

(2)Create a measure to return the real that its date <= specified date .

 

Measure = CALCULATE(SELECTEDVALUE('Table'[Real]),FILTER('Table','Table'[Date]<SELECTEDVALUE('Calendar date'[Date])))

 

(3)Add a slicer with field ‘Calendar date’[Date] to filter data in data table . The final result is as shown :

Ailsamsft_2-1645694656477.pngAilsamsft_3-1645694656480.png

I have attached my pbix file , you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

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

View solution in original post

1 REPLY 1
v-yetao1-msft
Community Support
Community Support

Hi @Damian_C 

In the first case, when the real value corresponding to your date is empty, you add [real] to the value, and the empty value is not displayed in the line chart.

Ailsamsft_0-1645694656471.pngAilsamsft_1-1645694656473.png

In the second case , if you want to specify that real only display data up to a certain date (although later dates also have data), you can create a calendar date table and measure to control.

(1)Create a calendar date table .

 

Calendar date = CALENDAR(DATE(2021,01,01),DATE(2021,02,28))

 

(2)Create a measure to return the real that its date <= specified date .

 

Measure = CALCULATE(SELECTEDVALUE('Table'[Real]),FILTER('Table','Table'[Date]<SELECTEDVALUE('Calendar date'[Date])))

 

(3)Add a slicer with field ‘Calendar date’[Date] to filter data in data table . The final result is as shown :

Ailsamsft_2-1645694656477.pngAilsamsft_3-1645694656480.png

I have attached my pbix file , you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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