select
[Measures].[Internet Sales Amount] on columns,
ancestor([Customer].[Customer Geography].[Customer].[Crystal Zheng],[Customer].[Customer Geography].[City])
on rows
from [Adventure Works]
--alternate syntax
select
[Measures].[Internet Sales Amount] on columns,
ascendants([Customer].[Customer Geography].[Customer].[Crystal Zheng])
on rows
from [Adventure Works]
//positive lead and negative lag
select
{[Date].[Calendar].[Calendar Quarter].[Q1 CY 2003],
[Date].[Calendar].[Calendar Quarter].[Q1 CY 2003].lag(3)} on columns,
[Measures].[Reseller Sales Amount] on rows
from [Adventure Works]
//head
select
{[Measures].[Internet Sales Amount],[Measures].[Internet Tax Amount]} on columns,
head([Customer].[Customer Geography].[Country],5) on rows
from [Adventure Works]
//
select
{[Measures].[Internet Sales Amount],[Measures].[Internet Tax Amount]}
on columns,
{[Customer].[Customer Geography].[Country].[Germany],
[Customer].[Customer Geography].[Country].[Germany].nextmember.nextmember}
on rows
from
[Adventure Works]
Subscribe to:
Post Comments (Atom)
Search This Blog
DAX - Grouping on multiple columns and the count
Please go thorugh the below URL for entire soultion. http://community.powerbi.com/t5/Desktop/DAX-Grouping-on-multiple-columns-and-the-cou...
-
Synchronous vs Asynchronous The SSIS dataflow contain three types of transformations. They can be non-blocking, semi-blocking or full...
-
SSRS 2008 R2 allows us to execute reports in 3 modes: 1. On Demand. 2. From Cache 3. From Snapshots On demand: This is normal approach tha...
-
---Fibonacci numbers declare @fib table(fib_id bigint,fib_val bigint) declare @current_val bigint,@previous_val bigint,@new_val bigint in...
No comments:
Post a Comment