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
Pikachu-Power
Post Prodigy
Post Prodigy

month/quarter/year for cumulative raw data in bar chart

Hi all,

 

i have following problem:

 

Situation:

 

I have cumulative raw data. plan values for 12 month in 2021. is values currently for 2 month in 2021. i want to show the values in a bar chart. in month level everything works. in quarter/year level i dont see the is values (should always be the last month value).

 

Measure:

 

Clients =
VAR _max = MAXX(Table, Table[Date])

RETURN
CALCULATE(SUM(Table[Value]),
Table[KTNR] = "Clients",
Table[Position] = "Revenue",
FILTER(Table, Table[Date] = _max))
 
Result:
 
345.PNG
 
The strange thing is, when i put Table[KTNR] = "Clients" additional in the filter pane it works? but i need it without restrictions in a filter pane because i want combine it with other values later.
 
So why it works when i put something in a filter pane which is already contained in the measure? 
2 REPLIES 2
amitchandak
Super User
Super User

@Pikachu-Power , Not very clear.

Create a date table join with the date and have the month, qtr, and year columns in the date table and use from there.

And try measure like

 

Clients =
CALCULATE(SUM(Table[Value]),
Table[KTNR] = "Clients",
Table[Position] = "Revenue",
FILTER(allselected(Date), Date[Date] = Max(Date[Date])))

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

I tried with a date table. my and your measure. still no is values for quarter and year. i think it is because the measure looks in quarter 1 for month 3 and there we have no values? and looks for month 12 in year level. 

Helpful resources

Announcements
Europe Fabric Conference

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.