cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
shaya Helper I
Helper I

Columns Seriaes

There is a nice example that shows the columns by Pivot table, how do I display it in Power Bi

Thanks

 

PERIOD.png

 The  measure:

PeriodSales:=IF( COUNTROWS( VALUES( DimPeriod[Period]))=1,
IF( VALUES( DimPeriod[Period]) = "Current", [Sales],
IF( VALUES( DimPeriod[Period]) = "MTD", [Sales](DATESMTD(DimDate[Datekey])),
IF( VALUES( DimPeriod[Period]) = "QTD", [Sales](DATESQTD(DimDate[Datekey])),
IF( VALUES( DimPeriod[Period]) = "YTD", [Sales](DATESYTD(DimDate[Datekey])),
IF( VALUES( DimPeriod[Period]) = "LastYear", [Sales](DATEADD(DimDate[Datekey],-1,YEAR)),
IF( VALUES( DimPeriod[Period]) = "PriorYearMTD", [Sales](DATEADD(DATESMTD(DimDate[Datekey]),-1,YEAR)),
IF( VALUES( DimPeriod[Period]) = "PriorYearQTD", [Sales](DATEADD(DATESQTD(DimDate[Datekey]),-1,YEAR)),
IF( VALUES( DimPeriod[Period]) = "PriorYearYTD", [Sales](DATEADD(DATESYTD(DimDate[Datekey]),-1,YEAR)),
BLANK())))))))),[Sales])

 

1 ACCEPTED SOLUTION

Accepted Solutions
shaya Helper I
Helper I

Re: Columns Seriaes

Thanks MFelix

 

In Excel there in the column, how do I enter in the column in POWER BI

 

View solution in original post

3 REPLIES 3
Super User III
Super User III

Re: Columns Seriaes

Hi @shaya,

 

You need to place your DimPeriod in the columns and the measure in values.

 

Should give what you want.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Check out my blog: Power BI em Português


shaya Helper I
Helper I

Re: Columns Seriaes

Thanks MFelix

 

In Excel there in the column, how do I enter in the column in POWER BI

 

View solution in original post

shaya Helper I
Helper I

Re: Columns Seriaes

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Top Solution Authors
Top Kudoed Authors