cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors