March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi friends,
I have the model like this:
I would like count number of row of the table which contains:
I created this measure but it does not work out:
No_Of_Row=
COUNTROWS(
SUMMARIZE(
F_Sales,
D_Date[No Month],
D_Client[Client Name],
D_Customer[Customer]
,"Sales",SUM(F_Sales[Sales])
,"Target",SUM(F_Target[target])
))
Could anyone please help me to solve it?
Much appreciate your help.
Hi, @tracytran91
Although there are relationships between your model tables, the target and sales tables are not related, and the three dimension tables are not related, so your code can't be written like this...
@tracytran91 , Try a measure like
countrows(F_sales,D_date[Month], D_customer[Customer], C_Client[Client Name] ,"_1" , sum(f_sales[sales]), "_2", sum(F_target[target]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |