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
New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (3,631)