cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vikram1 Frequent Visitor
Frequent Visitor

Dyanamic Dimension from measure in power bi

if I have a three Table
1. Dim_Customer : joiningDate, LeavingDate, State, District, Cust_Type, CustID, CustomerName
2. Dim_Date : All Possible Column like Date, Year, Month, Quarter etc..
3. Fact_Sales : CustID, InvoiceDate, SalesAmt

need soluation like :
when i select 3 months from slicer then i need to create column :  (Fact_Sales[SalesAmt]/(Number_of_Month Selected)) and create bucket like 0-100, 100-200, 200-500 etc. Group by with CustomerName/CustID and Customer count in bucket which we have created.
 
Need to show in Matrix
Row = State, City 
Column = Bucket
Value = Distinct Count of CustID
 
Dyanamic Dimension
 
Please Find sample
Please Find Input output Detail of my Issue "Dyanamic Dimension from measure in Power BI "
https://www.dropbox.com/s/n8hrbv6sncgnquk/Copy%20of%20Issue%20Dynamic%20dimension.xls?dl=0
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator v-qiuyu-msft
Moderator

Re: Dyanamic Dimension from measure in power bi

Hi @Vikram1,

 

You can create a new table like below: 

 

q3.PNG

 

Then create a measure below: 

Measure = var t=SUMMARIZE('InPutData','InPutData'[State],InPutData[City],'InPutData'[CustID],"c1",DIVIDE(SUM('InPutData'[SalesQty]),DISTINCTCOUNT('InPutData'[InvoiceMonth])))
return
COUNTX(FILTER(t,[c1]>=MAX('Table1'[Start])&&[c1]<MAX('Table1'[End])),[CustID])

 

q4.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
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
Highlighted
Moderator v-qiuyu-msft
Moderator

Re: Dyanamic Dimension from measure in power bi

Hi @Vikram1,

 

You can create a new table like below: 

 

q3.PNG

 

Then create a measure below: 

Measure = var t=SUMMARIZE('InPutData','InPutData'[State],InPutData[City],'InPutData'[CustID],"c1",DIVIDE(SUM('InPutData'[SalesQty]),DISTINCTCOUNT('InPutData'[InvoiceMonth])))
return
COUNTX(FILTER(t,[c1]>=MAX('Table1'[Start])&&[c1]<MAX('Table1'[End])),[CustID])

 

q4.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 133 members 1,776 guests
Please welcome our newest community members: