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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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